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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with History.go(target_string)

Status
Not open for further replies.

aolb

Programmer
Apr 16, 2002
180
GB
I want a button that when clicked will take me to a url. History.go(target_string) would seem to do what I want it to do but I can't get it to work and can't find an example. What am I doing wrong or is there another way?

<input type=&quot;button&quot; name=&quot;btnBack&quot; value=&quot;<<&quot; onclick=&quot;Javascript:history.go(&quot;frmselectcust&quot;)&quot;>
 
Is this what you are looking for?

<input type=&quot;button&quot; name=&quot;btnBack&quot; value=&quot;<<&quot; onclick=&quot;Javascript:document.location('frmselectcust.htm')&quot;>

That will take you to frmselectcust.htm when clicked...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top