|
-
Nov 15th, 2001, 10:31 AM
#1
page width (javascript)
how do i get the page width?
i think its window.width .. but it dont seem to be working
maybe its the synax?
var initX = (window.width / 2) - 300;
cheers
si
-
Nov 16th, 2001, 06:00 AM
#2
Lively Member
Here is a piece of code that make a window popup.
Code:
onClick="MM_openBrWindow('yourpage.asp','name','scrollbars=no, width=430,height=480')"
function MM_openBrWindow(theURL,winName,features) {
window.open(theURL,winName,features);
}
Hope this is what you need.
-
Nov 16th, 2001, 08:59 AM
#3
Originally posted by CiberTHuG
Sorry, but I have to come in here, and... LAUGH MY *** OFF!!!
And, sorry, Chenko. I've got no answer.
so you dont know and you are laughing at me 

sily, so...
var initX = (innerWidth / 2) - 300; ??
-
Nov 16th, 2001, 12:33 PM
#4
Hyperactive Member
NS only!!
alert(window.innerWidth)
alert(window.innerHeight)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|