Javascript causes classic exceptions of IE Code Http://www.yi521.com 18:29:29 not available
These are two classic exceptions, which are difficult to locate if you do not know the principles. The following code shows the conditions that occur.
<IFRAME src = "javascript: '<SCRIPT> top. ff1 = {ABC: function () {}}</SCRIPT> '"width = 0 Height = 0 name =" f1 "> </iframe>
<Button> the released Code cannot be executed. </button>
<IFRAME src = "javascript: '<SCRIPT> top. ff2 = {ABC: function () {}}</SCRIPT> '"width = 0 Height = 0 name =" F2 "> </iframe>
<Button> accidentally called method or attribute access </button>
The innerhtml of the p tag cannot insert the center Tag:
<P> <button> unknown runtime error </button> </P>
The following is a classic "unable to open the Internet site" exception:
<Div id = "TT"> <div> <SCRIPT> document. getelementbyid ("TT"). innerhtml = "" </SCRIPT> </div>
From these examples, we can see that there is still much room for improvement in IE robustness.
------------------------------------------------------------------------------ I still don't understand why. I read this article. Article But I have a problem with the 2-layer DIV in the script coat. After removing the DIV layer, the box that cannot open the Internet site and stops the operation is no longer displayed. In IE 7, there is no such problem in Firefox.