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!

Prevent further JavaScript on a page

Status
Not open for further replies.

wwwolf

Programmer
Jul 14, 2006
7
CA
I have a rather odd question, does any one know how to use JavaScript to disable JavaScript for the remainder of a page?
I'm looking for something like
if(DoesNotMeetMyRequierments == 1)
{
JavaScript.Disable = True;
}

Long story short, I have a bunch of JavaScript on a page that's suited for Engligh, so when a user accesses my site through Google Translation tools I want to fall back to the NoScript version that Google can translate (Google doesn't translate strings or addresses in Javacript).
 
I don't think you can disable Javascript programmatically as it would be a security hole, but I can think on some approachs:

1.- Redirect to another page without JavaScript
2.- Set a variable and conditionally call your functions according to its value.

Cheers,
Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top