PDA

View Full Version : body onLoad="self.resizeTo" attributes?


jackunz
10-31-2003, 09:32 PM
trying to find the resizeTo attributes on body onload. would like to get rid of scrollbars, menubars, toolbars when i open this window. can it be done? if so, how would you write it out? this is what i have so far when the window first opens:

<body onLoad="self.resizeTo(245,200)" marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">

Goldilocks
11-01-2003, 10:41 AM
Welcome to the forums jackunz! I would suggest posting your question in the client-side scripting forum. You'll get an answer in there.

leoo24
11-01-2003, 11:15 AM
moved it for ya :D

COBOLdinosaur
11-01-2003, 11:28 AM
You can't change the setting chrome setttings of an existing window; and you would make yourself very unpopular with users if you could.

If you feel you absolutely have to override the user then you will have to clear the chrome off by opening a new window with:
window.open(url,name,options)

which can then be blocked by popup killers, if the user does not like what you are doing.

If you want to deliver a good experience to your users, then forget about taking control of their browser and work on delivering content that rocks.