Is this possible? Getting around bad code...

admin

Administrator
Staff member
I wrote a script that uses window.prompt to get user input. It is stored in an external .js file. It is on a page with several other external .js files, one of which (not written by yours truly of course) literally defines a function called "prompt," which stupidly writes the argument string to the status bar and basically cancels out the core JavaScript function of "prompt."

Is there a way to get around this problem, some way to tell JavaScript to use its core functionality instead of the user-defined "prompt," or am I stuck having to go through the trouble of getting someone else to modify their script?
 
Back
Top