2
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by Lalita_shah
0

You do not need to use backspace to go back to certain pages, but you just use the browser's cache (if what it is called this) instead. Each visited page is saved in a hash. Be careful, the way to deal with IE browser compared to other standard browsers may not be the same.

0

Thanks for ur reply.but the problm is...actually my website opens with a animation and then home.html page displays,so if user went to some tabs of home.html page like about,contact us etc...then they should come back to home.html using backspace(i dont have back link)not to animation..i.e again they should not see the animation.

0

OK, you may be able to do so, but users can still use the 'back' button of the browser?

Anyway, what you need to do is to add key listener to your page. Then, you can check which button the user is pressing. If it is backspace which I think is keycode 16, then you redirect to the page you want. If you don't know how to do the code, you could use google to search for addActionListener() for FF and other browsers and attachEvent() for IE.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.