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 4 of 4
  1. #1
    New Coder
    Join Date
    Dec 2003
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Refreshing "On Click"

    Does anyone know how to use HTML to refresh a page after clicking a link (possibly using "()onclick"?

    Muchas Gracias

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,266
    Thanks
    6
    Thanked 48 Times in 48 Posts
    This may work

    <a href="javascript://" onclick="javascript:document.refresh()">Refresh</a>

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    Stillwater Ok
    Posts
    226
    Thanks
    0
    Thanked 0 Times in 0 Posts
    why not just make a link to the reffering page? Does javascript really need to be used?
    "Never offend people with style when you can offend them with substance."
    --Sam Brown

  • #4
    Regular Coder
    Join Date
    Apr 2003
    Posts
    103
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yep just use:
    <a href="URL_OF_CURRENT_PAGE.htm">Click here to refresh</a>

    Fatman


  •  

    Posting Permissions

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