iframe and showModalDialog

V

VV

I have problem editing iframe in modal dialog. When executing test2.htm
everything works fine, but when I open the same test2 in dialog editing is
disabled?! Any suggestions?


Example:

Test1.htm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<a href="" onclick="window.showModalDialog('test2.htm', window,
'');">Click</a>
</body>
</html>

Test2.htm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<iframe name="iFra" id="iFra" height="100%" width="100%"
frameborder="1"></iframe>
<script language="javascript">
iFra.document.designMode = 'On';
iFra.document.contentEditable = 'True';
</script>
</body>
</html>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top