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
    Aug 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    opening url in same window

    Hi Guys,


    I have currently got this bit of code in my program.

    function xopen(url)
    {
    window.open(url,"internal")
    }

    which opens a new window and displays a website. I need to alter it so instead of opening a new window, it opens the url on the same window, as the new window is repeatedly blocked by popup blocker.

    Any help would be greatly appreciated!

    Thanks
    Matt

  • #2
    Senior Coder Spudhead's Avatar
    Join Date
    Jun 2002
    Location
    London, UK
    Posts
    1,856
    Thanks
    8
    Thanked 110 Times in 109 Posts
    Appreciation duly appreciated, but you're still gonna get more help with this in the client-side Javascript forum than here in the server-side ASP forum

    But for what it's worth, I think you should just be able to replace:
    window.open(url,"internal")
    with:
    window.location.href = url;


  •  

    Posting Permissions

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