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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Looking for window sizing info

Status
Not open for further replies.

canix

Technical User
Jun 1, 2000
41
US
I have been designing this deal for my kid.... If I get it to work that is.

I can do an autorun program that automatically starts up an html document... but I want it to open as a full screen (110% each way) so that the whole screen apears to be the page, and then take off all the controls....

I don't want to open a page just to open another page with those requirements.... and closing the first page behind a second only gives me errors....

Maybe I missed a chapter in the book... But I need some help....

I appreciate anything I can get.... :)

Canix
 
To change the window size:

self.resizeTo(2000,2000)

unfortunately, you cannot remove the controls on the first page. if you open a new window, you can, and you can close the opener with:

opener.close()

if you opt to open a second window, you cna kill both birds with one stone, using something like:

x=window.open("mypage.htm","dapage","fullscreen=yes")

now, to avoid the annoying error message that appears when you try to close the original window, just hide it instead (add this line just after the one above):

document.body.onfocus=function(){if(!x.closed){x.focus()}}

all this should work in IE... make sure you check the syntax, as I was showing you a concept... jared@eae.net -
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top