Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Closing a window.open popup from a FRAME: is it possible ??

1 view
Skip to first unread message

José.A Torres

unread,
Sep 18, 2005, 3:42:01 PM9/18/05
to
I have a web hosted in a free server that pops up a banner window everytime
index.html is loaded. I'd like to close that pop-up window. but seems
imposible.

the code generated by the host it's like this:

<script>
function begin() {
popup = window.open (and so on...)
page1.location.href="MyIndex.html";
}
</script>
<html>
<head></head>
<Frameset rows="*,1" onload="begin();">
<frame name="page1">
<frame name="page2">
</frameset>
</html>
so, the server generates 2 frames: and invisible one(1 pixel size) and the
big one that contains my website.
INSIDE MY MyIndex.html I wrote javascript like: popup.close(); and no
result; parent.frames[0].popup.close() and no result.
I don't know if what i'm asking is possible to do:closing the popup window
from myindex.html (hosted at page1 frame)
ANY IDEAS PLEASE???


Martin Walke

unread,
Sep 29, 2005, 6:32:01 AM9/29/05
to
Hi José,

Is the problem that the variable 'popup' is not available outside of the
begin function? Normally something like

parent.popup.close();

should work but only if popup is in scope. I can see your problem but can't
offer any definitive solution. :(

Martin

"José.A Torres" <mico...@midominio.bis> wrote in message
news:Oxs8MkIv...@TK2MSFTNGP14.phx.gbl...

0 new messages