Programming

(Javascript) is there a difference between <script language="javascript> and <script type="text/javascript">

steloflute 2012. 6. 18. 13:48
http://www.ahfb2000.com/threads/3284-is-there-a-difference-between-lt-script-language-quot-javascript-gt-and-lt-script-type-quot-text-javascript-quot-gt

 

Yes, there is a difference .

<script language="JavaScript"> is incorrect

There is no attribute "language" it has been deprecated.
The required attribute is "type" and the type="text/javascript"

Hence...

<script type="text/javascript"> is now the correct form