Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Mar 2005
    Location
    Australia
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    scrollbars problem

    I have opened a new window with an event handler i.e. onClick=window. open(url,status=no,menubar=no,scrollbars=no,resiza
    ble=no), and this window does not have scroll bars.

    I then call a JavaScript function containing; window.location=new url, to open a new url in the same window, but the new url opens and the window now has scroll bars. Can anyone tell me what is happening here please. I don't want scroll bars on the window.

  • #2
    Regular Coder
    Join Date
    Dec 2003
    Posts
    132
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code:
    var MY_NEW_WINDOW=window.open("blah.html","blah","scrollbars=no");
    
    
    function openNewURLInSameWindow(){
    
    MY_NEW_WINDOW.location.replace("thenewurl.html");
    
    }
    You see, you have to give your window a name to acces it.
    UNDER CONSTRUCTION


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •