"orion30" <or*****@ifrance.com> wrote in message
news:42***********************@news.wanadoo.fr...
Is-it possible to write in a mother window from a child window ?
Like this:
Parent.document.write(............................ ................)
Why not try it and report back to us whether it worked or not?
<script type="text/javascript">
window.newWindowHtml = [
'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">',
'<html>',
'<head>',
'<title>Test Window</title>',
'</head>',
'<body onload="opener.document.write(\'hi there\');">',
'</body>',
'</html>'
].join('\n');
window.open('javascript
:opener.newWindowHtml');
</script>
Apparently it does work.
--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ -
http://jibbering.com/faq