image button as a back button

C

Chicagoboy27

Seems like and easy question but I am running into problems getting it
to work. I have a form where users enter search criteria and then
displays results based on the search. I am wondering how can you create
an image button that acts like a back button. like the browser back
button. I have tried the usual things like

onClientClick = Javascript:history.back()

any suggestions would be helpful.

Thanks
 
A

apathetic

Chicagoboy27 said:
onClientClick = Javascript:history.back()

Try something like this in your onClickClick:

window.history.back(); return false;

There is no need for javascript: at the beginning, and the return false
prevents the usual button click behaviour from firing.

apathetic
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top