Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SCRIPT16389: Unspecified error -- Javascript code

I'm getting a "SCRIPT16389: Unspecified error" for simply defining a small piece of Javascript. This thing works in all browsers EXCEPT IE (yeah, freaking IE -- don't get me started). I am testing this in IE10, but I was told that this is also happening in IE11.

This is all I have in my code where it's failing (!!!):

<script type="text/javascript">
    var isChild;
    if (window.opener == null) { isChild = false } else { isChild = true }
</script>

I've looked at other posts that have this same error. None of them answers my question.

Ideas, anyone?!?

like image 576
Ray K. Avatar asked Apr 22 '15 15:04

Ray K.


1 Answers

I have since discovered that IE spits out this generic error if it doesn't like a piece of Javascript code.

I don't remember specifically what the Javascript issue was for this question, but I do remember that once I resolved it, this error went away.

EDIT: I seem to keep getting downvotes on this, so let me clarify what I'm talking about. What I'm saying is that a Javascript error -- ANY Javascript error, not something specific -- will cause the SCRIPT16389 error to appear. If you resolve the error -- whatever it is you're getting -- then the SCRIPT16389 should disappear.

like image 154
Ray K. Avatar answered Nov 02 '22 04:11

Ray K.