View Full Version : refresh page on a button click

03-16-2005, 04:19 PM
this should be quick and simple. i need to reload a page on a button click. what's the code? :p

03-16-2005, 05:09 PM
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...

...and of course, that would be no different than: onclick="document.location=document.location" --apart from requiring scripting... ;)