showModalDialog and DOM

L

louvino

Hi,

When I open a showModialDialog, I create a node of DOM (<DIV
WIDTH="200px"><B>Text here</B></DIV>).

I want to get this node in the calling page but I get the node <DIV
WIDTH="200px"></DIV>.

What's the problem ?

Please help me.

Code of the calling page :
<html>
<head>
</head>
<body>
<script type="text/javascript">
var m=showModalDialog("modal.html", "status=no; scroll=no; help=no; unadorned=yes");
alert(m.outerHTML);
</script>
</body>
</html>

Code of the showModalDialog :
 

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,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top