Computing.Net > Forums > Programming > Access Javascript Variables from IE

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Access Javascript Variables from IE

Reply to Message Icon

Name: justinr
Date: November 7, 2003 at 15:47:18 Pacific
OS: Windows XP
CPU/Ram: AMD1.1 / 1024gb
Comment:

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?




Sponsored Link
Ads by Google

Response Number 1
Name: SN
Date: November 7, 2003 at 16:04:38 Pacific
Reply:

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


0

Response Number 2
Name: geohoffman
Date: November 8, 2003 at 06:47:41 Pacific
Reply:

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.


0

Response Number 3
Name: SN
Date: November 8, 2003 at 07:44:27 Pacific
Reply:

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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Access Javascript Variables from IE

C:Access data directly from address www.computing.net/answers/programming/caccess-data-directly-from-address/8563.html

Javascript variable inside html www.computing.net/answers/programming/javascript-variable-inside-html/6411.html

getting a variable from batch file www.computing.net/answers/programming/getting-a-variable-from-batch-file/16771.html