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
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    refresh page on a button click

    this should be quick and simple. i need to reload a page on a button click. what's the code?

  • #2
    Regular Coder
    Join Date
    Aug 2004
    Location
    codegoboom@yahoo.com
    Posts
    999
    Thanks
    0
    Thanked 0 Times in 0 Posts
    For IE, you may use: document.execCommand("Refresh")

    Otherwise, something like <a href="?">refresh caused by query</a> might actually work in several browsers, I'm guessing...

    Edit:
    ...and of course, that would be no different than: onclick="document.location=document.location" --apart from requiring scripting...
    Last edited by codegoboom; 03-16-2005 at 05:41 PM. Reason: should've quit while ahead :o
    *this message will self destruct in n-seconds*


  •  

    Posting Permissions

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