Hi everybody!
I have a question regarding IE. I have a client using a script (which I can not change as it is an affiliate program's script that I can not control) that creates a variable called "event" and assigns a number to it. This is the line:
Later on, there is another script that should use window.event, but... it does not work, because window.event gets rewritten by the previous script and it stays filled by the number!!!
In your opinion, is there a way to empty the "event" variable, and restore it to its original state, including srcElement?
I have tried setting:
This resulted in having window.event value back to null, and its type as object (as it should be). But srcElement will not work :-(
Any suggestions? Thanks in advance!
Simone
I have a question regarding IE. I have a client using a script (which I can not change as it is an affiliate program's script that I can not control) that creates a variable called "event" and assigns a number to it. This is the line:
Code:
var event=7348734;
In your opinion, is there a way to empty the "event" variable, and restore it to its original state, including srcElement?
I have tried setting:
Code:
event = null; event = window.event
Any suggestions? Thanks in advance!
Simone
Comment