/    Sign up×
Community /Pin to ProfileBookmark

OnOpen? Mazimize screen

Howdy folks
Any one here know how to do a onopen script so that when somone goes to the page on my site it maximizes the screen size?

Fet

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@A1ien51Nov 10.2005 — persoanally I like the window the size I have it.

You need to use resizeTo and moveTo(0,0)

http://www.google.com/search?hl=en&q=resizeTo+maximum+JavaScript

Eric
Copy linkTweet thisAlerts:
@scottyrobauthorNov 10.2005 — Thanks. That worked perfectley in apple's Safari but not in firefox.. any ideas why?
Copy linkTweet thisAlerts:
@JPnycNov 10.2005 — FF can be tempermental about affecting windows with scripting that weren't opened via scripting. Not sure if that's what you're experiencing and I don't have a mac to test on. FF allows it on pc though, that much I've tested and verified.
Copy linkTweet thisAlerts:
@scottyrobauthorNov 10.2005 — [CODE]<script language="JavaScript">
self.moveTo(0,0)
self.resizeTo(500,500)
</script>[/CODE]


is there anyways of changing 500,500 to the size of the screen.. i.e if the screens 1024x768 its automatticaly fills that space?

Fet
Copy linkTweet thisAlerts:
@JPnycNov 10.2005 — screen.availWidth,screen.availHeight
Copy linkTweet thisAlerts:
@scottyrobauthorNov 10.2005 — Thanks that worked perfectly... if i was to put this in an external .js file would it still work? If it would how to i add/put a link in the main file to the external javascript?

Fet
×

Success!

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