Home >Web Front-end >JS Tutorial >Should the script tag attribute be type or language_Basic knowledge

Should the script tag attribute be type or language_Basic knowledge

WBOY
WBOYOriginal
2016-05-16 16:18:391292browse

Being asked a question:

Copy code The code is as follows:


The result will still pop up a.

In order to ensure that the script program can be executed normally, unless you specifically use the VBScript and Script Encoder mechanisms that are only supported by IE, you should set the "type" attribute of the SCRIPT tag to "javascript" and do not set the obsolete "Languange" attribute. .

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn