Results 1 to 4 of 4

Thread: page width (javascript)

  1. #1
    chenko
    Guest

    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

  2. #2
    Lively Member Base's Avatar
    Join Date
    Aug 2001
    Location
    The Netherlands
    Posts
    65
    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.
    Ok

  3. #3
    chenko
    Guest
    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; ??

  4. #4
    Hyperactive Member progressive's Avatar
    Join Date
    Sep 2001
    Location
    Manchester, UK
    Posts
    404
    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
  •  



Click Here to Expand Forum to Full Width