![]() |
javascript question
after you open a popup, how does javascript know the opened document window has fully loaded and finished? there is a way in javascript to do that, I did it once...
|
in the body tag of the document in the popup you can put onLoad="somefunction();"
like <body onLoad="wheeimloaded('not rich');"> |
Quote:
|
<script>
function functionname() { alert(); } w=window.open('url'); w.document.onload=functionname; // no () </script> |
Quote:
|
<script language="Javascript" type="text/javascript">
function functionname() { alert(); w.focus(); } function openWindow(url) { w=window.open('about:blank'); w.document.open(); w.document.write('<html>' + '<head><title></title></head>' + '<body style="padding:0px;margin:0px;border:groove 2px;">' + '<iframe src="' + url + '" name="displayframe" frameborder="0" style="width:100%;height:100%;" onload="window.opener.functionname()"></iframe>' + '</body></html>'); w.document.close(); } openWindow('http://www.google.com/'); </script> |
Nice..........
|
All times are GMT -7. The time now is 01:33 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123