/    Sign up×
Community /Pin to ProfileBookmark

modifying window properties with onLoad

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.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@gil_davisOct 14.2003 — 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.
Copy linkTweet thisAlerts:
@pfeilauthorOct 15.2003 — 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
×

Success!

Help @pfeil spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...