Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I want to know if there's a way to modify javascript variables from Internet Explorer. For example, you visit a webpage that has javascript on it, say a count down. This countdown starts at 100 and goes to 0. I want to be able (from Internet Explorer, with no direct access to the original javascript code) to change the variable that holds information about the counter. So say the counter is at 90 and I wanted to put it to 0, I could change that from IE. Is there any sort of "hack" so to speak that would allow this?

No way that I know of...The "hack" would have to act as a debugger, find where the variable is stored in memory, and change it accordingly. It's possible, but I don't know of any reasonable way to do it.
-SN

When you load the page you can see the Javascript can't you? So if you want to change the value of a variable just modify the code, no? Or what else do you mean? You do know that javascript is a client side (well most of the time)scripting language? There is no full proof way to hide js code from someone, even if the web site uses an obfuscator or a seperate external .js file for all their code. If they use a seperate .js file you can always use a debugger to look at it. If they use an obfuscator there are still ways to look at the code.

I believe he's talking about modifying a variable during run-time...For example, if you're taking a test, and the author of the test gave you 100 seconds to complete a question, he wants to reset the javascript counter back to zero when it gets to 90 seconds.
Depending on how they have it set up, you may be able to save a local copy and give yourself more time, but any web designer worth their salt would only accept form data from their own site (ie not your local hard drive). Nevertheless, I've cheated on more than one homework this way...A lot of people are just too lazy to put in measures to prevent it.
I know, I've always said I'm against cheating, etc., but this was a statics class...I don't think my future employer will ever ask me to build a freakin' truss or calculate the load on a beam. It was a stupid class that shouldn't even have been in the program...Okay enough ranting.
-SN

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |