Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

onload...

Status
Not open for further replies.

neobadlands

Programmer
Sep 2, 2000
24
DE
Hi,

I try to open a page in fullscreen mode from within Flash.
As far as I know this is only possible by loading another page first, which then loads the actual page using

<body onload=&quot;openfullscreen()&quot;>

without anymore clicks.
So far, so fine.

But now I still have this first page open.
Can anyone of you tell me, if this page can be closed automatically?!

Maybe by putting something like

onload......close.window

in the second page being displayed in fullscreen mode.
If so, I would appreciate, if you could give me the exact syntax.

Thank you
Neo...
 
<body onload=&quot;openfullscreen(); self.close();&quot;>

 
Okay, but it does not close right away.
Any chance to get rid of that window? The User might think he closes the linked page.

What about putting it into the 2nd page (onload...)?!
 
on the 2nd window, then onload=&quot;opener.close()&quot;
 
yeh, when you load the first page, put <body onLoad=&quot;openfullscreen();&quot;>
and in the new page, write <body onLoad=&quot;window.close();&quot;>

btw, hey iza, how could you give a name to the first window? like, instead of it being window, you name it fred or something. that way, you could do this. <body onLoad=&quot;firstwindow.close();&quot;>
 
the default name of the 1st window is &quot;opener&quot;
i don't know how to give a name to a window YOU didn't create ... if you created it, then when opening it you gave a name (window.open(name, url, option))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top