Help needed in Javascript + Image + HREF
- by Bragaadeesh
Hi,
<a href="#"><img src="http://www.google.com/intl/en_ALL/images/logo.gif" onClick="alert('hi')"/></a>
In the above code, i am appending a javascript onclick method to the image tag. When I click the image once and I press back, it should go back to the page it came from. Instead its staying on the same page. Is there any way I can avoid that? (probably set something else instead of href="#"). The reason I set href="#" is to make my cursor turn into hand, other than that it has no use.
This is occuring in FIREFOX, IE it works fine
Please help. Thanks.