/    Sign up×
Community /Pin to ProfileBookmark

Is it possible to use window.open properties on current window?

Hi all,

I have a page (page1), a menu screen to be precise, I would like to open directly with certain properties, which you can see below. Now I can do that by opening another page (page2) in order to launch page1 with those properties using something like the following:

[CODE]
newPage =window.open(page,name,”width=636,height=411,toolbar=0,scrollbars=0,resizable=0,location=0,directories=0,menubar=0,status=0″);
[/CODE]

My goal is to directly open page1 and open it with it’s properties.

Any ideas?

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@mrhooDec 05.2006 — You can call window.resizeTo and window.moveTo to the current window,

but it is an obnoxious thing to do to your visitors. Save your own preferences

for popups, leave the user's window size the way he likes it.
Copy linkTweet thisAlerts:
@CWCJimmyauthorDec 05.2006 — Thanks for the response!

Are you aware of any ways to elminate all the bars on an open page?
Copy linkTweet thisAlerts:
@felgallDec 06.2006 — Most browsers these days have the option for Javascript to interfere with the browser toolbars and to resize the current window disabled by default since most people don't like it when web pages rearrange their carefully sized windows. Some now insist that the address bar must always appear for all windows regardless of settings in order to ensure that the location of the page is clearly identified in order to help prevent site spoofing.
Copy linkTweet thisAlerts:
@CWCJimmyauthorDec 07.2006 — Thanks Felgall
×

Success!

Help @CWCJimmy 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.7,
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,
)...