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

redirect problem 1

Status
Not open for further replies.

lwfg

Programmer
Feb 9, 2009
52
US
Is there a way of making a redirect so it can't be undone by right clicking and then clicking back?

I'm asked not to disable the right click.
 
Hi

lwfg said:
Is there a way of making a redirect so it can't be undone by right clicking and then clicking back?
The [tt]location.replace()[/tt] method replaces the current history location with the new one, so the history list will not contain the original URL. Of course, this depends on JavaScript, so fortunately can be easily disabled.
lwfg said:
I'm asked not to disable the right click.
It can not be disabled anyway.

Feherke.
 
Hi

As I mentioned it earlier, it is not possible to disable the context menu. There are some circumstances that will make those "solutions" to fail :
[ul]
[li]simply not works[/li]
[li]the browser has built-in option to defeat it[/li]
[li]browser extensions is installed to defeat it[/li]
[li]user script is installed to defeat it[/li]
[li]bookmarklet is used to defeat it[/li]
[li]keyboard is used to open the context menu[/li]
[li]JavaScript is disabled[/li]
[/ul]


Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top