Forum Moderators: open

Message Too Old, No Replies

Insert a Refresh Button

         

piskie

10:46 am on Dec 5, 2006 (gmt 0)

10+ Year Member



Can anybody please tell me if it is possible to insert a (simple) Button into a page that will cause it to Refresh/Reload. Can be html or php page with the emphasis on simplicity.

phranque

10:54 am on Dec 5, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



if you have a javascript enabled browser, you can do some thing like:
<form><input type=button value="Refresh" onClick="history.go()"></form>

or:

<form><input type=button value="Refresh" onClick="window.location.reload()"></form>

piskie

12:18 am on Dec 7, 2006 (gmt 0)

10+ Year Member



Thanks phranque - exactly what was needed.