I'm using eval on a users input to turn it into a variable. However if the user enters something that isn't a variable then an error occurs (No such variable or something similar) is there a way to check for this to aviod the error? I have been using
but there are reasons that I would rather not also if I have to use
does it switch itself off again after the script has stopped running or do I have to do some tidying up.
Thanks in advance s-)
Code:
window.onerror
Code:
onerror
Thanks in advance s-)