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 3 of 3
  1. #1
    New Coder
    Join Date
    Aug 2002
    Location
    Islamabad
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    disabling refresh option

    dear friends
    1)What is the code of disabling the refresh option of the page by using javascript code.
    2)how can I redirect to other page by using javascript and also after 20 second pause.
    EXAMPLE WHEN WE MAKE NEW THREAD OR PUT A REPLY ON THIS SITE IT GOES TO A PAGE DISPLAY MESSAGE AND REDIECTED TO PREVIOUS ONE AUTOMATICALLY. I WANT THAT
    thanks and bye
    Last edited by irfan_haider; 08-20-2002 at 07:09 AM.
    ENGR IRFAN HAIDER JAFFERY
    BE CIVIL, MCS (STUDENT)
    ISALAMABAD

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Mumbai, India
    Posts
    218
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I don't think so you can disable the "refresh" option..........but you can open the page in a new window and disable the toolbar.

    To redirect to a page after a delay, use this code :

    Code:
    <script language="JavaScript">
    function redirect()
    {
     location.href=filename.htm;
    }
    
    setTimeout("redirect()", 20000); // Timeout in milliseconds
    </script>

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Even then .. there's always F5. You can't disable refresh.


  •  

    Posting Permissions

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