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
    Regular Coder
    Join Date
    Jul 2002
    Posts
    197
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to make refer.html in same window?

    I use the following script to refer an opening html to another page, but the script opens a new window. How can I keep it in the same window?

    This is the script I have:
    <script language="javascript">
    <!--
    var time = 2; // delay in seconds;

    function redir(){
    timer = setTimeout("go()", (time * 6700));
    }

    function go(){
    ("http://www.management-trainingen.nl/home.html,"");
    }

    //-->
    </script>

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    window.location.href="yourLink.html";

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]


  •  

    Posting Permissions

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