Click to See Complete Forum and Search --> : modifying window properties with onLoad


pfeil
10-14-2003, 02:38 PM
i am able to resize the window and move it to various places on the screen by statements such as...

onLoad="parent.resizeTo(500,300); parent.moveTo(50, 50);"

however, how can i eliminate the location bar, the status bar, the toolbar, etc. using the onLoad statement? thank you.

gil davis
10-14-2003, 04:00 PM
The window object in IE does not allow you to change those properties except through the window.open() function. If you give your window a name, you can use window.open() without really opening another window, and theoretically change those elusive parameters. However, there is no way to tell if you already did it, so anything in the onload command would put you into a do-forever loop.

If you (or anyone else) can find a way around this, I'd love to see it.

pfeil
10-14-2003, 07:52 PM
originally i had tried to open a new window with the window.open method in a function, and the function called with the onClick method for a text link. but it wouldn't work, so i made the link target to _blank, and used the onLoad properties in the new window.

here is the page on which i am trying to do this: http://www.dubbin.net/djd/new/media.htm