:?: how can we prevent a page from moving to back page?

Recommended Answers

All 3 Replies

I've read somewhere that there is a way to handle the Back button click using Javascript... Google it :)
Good luck...

Place the following script in .ascx (which one is common in all the forms in projects) or use this code in seprate page........

<script language="javascript" type="text/javascript">
history.forward()
</script>

Place the following script in .ascx (which one is common in all the forms in projects) or use this code in seprate page........

<script language="javascript" type="text/javascript">
history.forward()
</script>

Wouldn't this cause the page to go back and then jump forward again? This is not good especially on slow internet connections!!! Did you test it?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.