hi
you can using this code for showing your error in separate window and the end of debuging your scripts you can erase this code from the other code
on the input of script tag
- <script type="text/javascript">
-
onerror=showErr;
-
function showErr(errMsg,location,lineNum)
-
{
-
ErrWin=window.open('','new window',"width=100, height=100");
-
ErrWin.document.write('message of error '+errMsg+'<br />place of error '+location+'number of line that have error'+lineNum);
-
ErrWin.document.close();
-
}
-
</script>
and so if your browser is firefox you can see your error
by clicking menu tools->javascript consol
be success