Dear all,<br>
<br>
Is there a way of catching javascript errors or testing that a command is valid before trying to execute it? Can't find much info on this area.<br>
<br>
I'm trying to execute the command..<br>
<br>
window.parent.opener.location.href= ..blah blah..<br>
<br>
Which is valid sometimes but not at others depending upon the location it is trying to open. Is there some sort of try/catch command which could allow me to do something else if the command is not able to be executed, or is not valid.<br>
<br>
Thanks,<br>
Mike<br>
<br>
Is there a way of catching javascript errors or testing that a command is valid before trying to execute it? Can't find much info on this area.<br>
<br>
I'm trying to execute the command..<br>
<br>
window.parent.opener.location.href= ..blah blah..<br>
<br>
Which is valid sometimes but not at others depending upon the location it is trying to open. Is there some sort of try/catch command which could allow me to do something else if the command is not able to be executed, or is not valid.<br>
<br>
Thanks,<br>
Mike<br>