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...
javascript question
Collapse
X
-
Tags: None
-
thanks, but the problem is it's at another domain and I have no control over it - that will give me "Access Denied"Originally posted by mortenbin the body tag of the document in the popup you can put onLoad="somefunction();"
like <body onLoad="wheeimloaded('not rich');">Comment
-
same problem: "Access Denied"Originally posted by celebx<script>
function functionname() {
alert();
}
w=window.open('url');
w.document.onload=functionname; // no ()
</script>Comment
-
<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>Last edited by celebx; 01-13-2005, 04:23 AM.Message me for more info: ICQ 8322641 (@gmail.com).Comment
-
Nice..........
Contact information - ICQ: 7.9.0.3.0.0 · AIM: no roach · E-Mail: roachito || @ || gmail || . || com
[Friend Finder - Geo Targeting & Incredible Site Ratio] - [Credit Card Traffic - Make $65 Per Join]
Comment

Comment