Home  >  Article  >  Web Front-end  >  Let’s talk about the document.all attribute under IE and Firefox_javascript skills

Let’s talk about the document.all attribute under IE and Firefox_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:44:011132browse

For example, the following code:

Copy code The code is as follows:







In the IE browser, "this is a IE" will be output;
In the firefox browser, "this is a Mozilla" will be output.

But this does not mean that the document.all attribute method is not supported in firefox.

The following piece of code runs normally under IE and Firefox browsers
Copy the code The code is as follows: