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
Printable View
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
Here is a piece of code that make a window popup.
Hope this is what you need.Code:onClick="MM_openBrWindow('yourpage.asp','name','scrollbars=no, width=430,height=480')"
function MM_openBrWindow(theURL,winName,features) {
window.open(theURL,winName,features);
}
so you dont know and you are laughing at me :confused:Quote:
Originally posted by CiberTHuG
Sorry, but I have to come in here, and... LAUGH MY *** OFF!!!
And, sorry, Chenko. I've got no answer.
:p
sily, so...
var initX = (innerWidth / 2) - 300; ??
NS only!! :mad:
alert(window.innerWidth)
alert(window.innerHeight)