/    Sign up×
Community /Pin to ProfileBookmark

Full screen window

Hey folx,

Glad to see this forum is still around, it’s always been very helpful. My question is, I’ve used script to open a window like this:

onclick=”window.open(this.href, ‘_blank’, ‘height=200,width=550,scrollbars’); return false”

How can I open a window that will be full-screen size no matter the size of someone’s monitor or their browser default? – – While I’m at it, I’d like to find an exhaustive resource for javascript code that might list most any code with its available parameters…any suggestions would be great!

Thanx ?

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@AdamGundryMay 28.2004 — Leaving aside the fact that [url=http://www.diveintoaccessibility.org/day_16_not_opening_new_windows.html]popups are evil[/url], you could do something like this:

window.open(this.href, '_blank', 'height=' + screen.height + ',width=' + screen.width + ',scrollbars');

For a good JavaScript reference, check out [url=http://devedge.netscape.com/library/manuals/]Netscape Devedge[/url]. In particular, the JS 1.3 reference is handy despite technically being deprecated.

Adam
Copy linkTweet thisAlerts:
@okhamauthorMay 28.2004 — Thanx Adam, that worked. Devedge looks like a good reference, too, appreciate it.

okham
×

Success!

Help @okham 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 6.2,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...