/    Sign up×
Community /Pin to ProfileBookmark

Changing the pages size?

Hi,

How do i change the size of the page

Currently i am linking to a pop-up page via this code?

[CODE]
<a href=’#’ onClick=”MyWindow=window.open(‘$examplelink/example/example.php?ID=$ID’,’MyWindow’,’toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width=450,height=500′); return false;”
[/CODE]

But that is a pop-up menu, i now have a link on this pop-up page, now when that link is clicked i need it to load a different page within that window but also have the size of the page to width=650 and height=500

How do i do this without making it another pop-up and getting it to do it in the window it is already in

Thanks
Adam

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@Khalid_AliDec 06.2004 — window.resizeTo(width,height)

should do the trick for you
Copy linkTweet thisAlerts:
@7studDec 06.2004 — window.resizeTo("650", "500");

That works in IE6 and FF1.0
×

Success!

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