Click to See Complete Forum and Search --> : correct <script> tags to use - easy question


jslady
06-06-2003, 03:21 AM
Hi,

This is a simple question i hope you can help me with.

How should you introduce your javascript. I have seen the examples below and am curious to know the best way and the most frequently used way.

<script language="javascript">

<script type="text/javascript">

<script language="javascript" type="text/javascript">

thanks.

Khalid Ali
06-06-2003, 03:49 AM
These are the current standard compliant script tags

<script type="text/javascript">
</script>

jslady
06-06-2003, 03:53 AM
cheers Khalid.

Charles
06-06-2003, 05:08 AM
If you use or add a language="JavaScript" then Netscape will use a non-standard Array.toString() method. You'll wonder why your script works fine in every other browser so it's best to avoid that depricated attribute.