noget i denne stil duer fint her:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd"> <html>
<head>
<title>Untitled</title>
<script type="text/javascript">
function submitDiv() {
try {
document.addEntry.divContent.value = document.getElementById("feeder").innerText;
alert(document.addEntry.divContent.value);
return true;
} catch (e) {
alert(e);
return false;
}
}
</script>
</head>
<body>
<form action="#" name="addEntry" id="addEntry" onsubmit="return submitDiv();">
<input type="hidden" name="divContent" id="divContent">
<div id="feeder" contenteditable="true" style="border:1px solid black;width:200px;height:200px;overflow:auto;"></div>
<input type="submit" value="Send">
</form>
</body>
</html>
kan du ligge noget online hvis du forsat ikke kan finde ud af det?