tunait de todas formas .... lo que me digiste no funciona ;-(
Código:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<script>
function init() {
editor.contentWindow.document.desingMode = "on";
//alert(editor);
}
function add() {
var div = editor.document.createElement("div");
div.style.width = "100px";
div.style.backgroundColor = "#FFCC00";
editor.body.appendChild(div);
}
window.onload = init;
</script>
</head>
<body>
<iframe name="editor"></iframe>
<a onClick="add();">Add()</a>
</body>
</html>
Como ves ese codigo da error jeje