Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

refresh button

Status
Not open for further replies.

Spidy6123

Technical User
May 30, 2002
227
CA
is there any way to create a refresh button?

other than the nasty javascript one

like so...

<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
document.write('<form><input type=button value=&quot;Refresh&quot; onClick=&quot;history.go()&quot;></form>')
</script>
 
You can create your own button using some image editing software and place it on the form in the usual way. You'll still need to use Javascript to activate it, though.

<img src=&quot;image.jpg&quot; onClick=&quot;history.go()&quot;>
 
You could do this, but it's pretty much the same thing:

<button onClick=&quot;window.location.href=window.locatoin.href;&quot;>Refresh</button>
or this (which is what you have above, only without the extra JS):
<form><input type=&quot;button&quot; onClick=&quot;window.location.href=window.locatoin.href;&quot; value=&quot;Refresh&quot;></form>

Rick -----------------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top