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
Release: 2016-05-16 16:18:39
Original
1277 people have browsed it

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. .

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template