Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Meta tag for scripting language

Reply
Thread Tools

Meta tag for scripting language

 
 
Robert Scheer
Guest
Posts: n/a
 
      12-30-2003
Hi.

I have some doubts about this meta tag:
<META http-equiv="Content-Script-Type" content="text/javascript">

Do I really need to declare this meta tag in all my pages?

If I declare it, will I still need to create my scripts this way?
<script type='text/javascript'>

Is there any advantage/disadvantage when using it?

Thanks,
Robert Scheer
 
Reply With Quote
 
 
 
 
Lasse Reichstein Nielsen
Guest
Posts: n/a
 
      12-30-2003
(Robert Scheer) writes:

> I have some doubts about this meta tag:
> <META http-equiv="Content-Script-Type" content="text/javascript">
>
> Do I really need to declare this meta tag in all my pages?


Those that use intrinsic events (onclick etc.).

> If I declare it, will I still need to create my scripts this way?
> <script type='text/javascript'>


Yes. The type attribute is required on script elements. The
Content-Script-Type is used for the scripts inside intrinsic event
handlers.

> Is there any advantage/disadvantage when using it?


It is required by the HTML specification. Browsers don't really
care. They default to Javascript is nothing else is written.

/L
--
Lasse Reichstein Nielsen -
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
 
Reply With Quote
 
 
 
 
Jim Ley
Guest
Posts: n/a
 
      12-30-2003
On Tue, 30 Dec 2003 16:49:01 +0100, Lasse Reichstein Nielsen
<> wrote:

> (Robert Scheer) writes:
>
>> I have some doubts about this meta tag:
>> <META http-equiv="Content-Script-Type" content="text/javascript">
>>
>> Do I really need to declare this meta tag in all my pages?

>
>Those that use intrinsic events (onclick etc.).


If and only if you're using HTML 4 or XHTML 1.0, not if you're using
other HTML's.

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do u invoke Tag b's Tag Handler from within Tag a's tag Handler? shruds Java 1 01-27-2006 03:00 AM
Using a Scripting Language as Your Scripting Language DaveInSidney Python 0 05-09-2005 03:13 AM
Python is the best and most popular general purpose scripting language; the universal scripting language Ron Stephens Python 23 04-12-2004 05:32 PM
Re: Language META Tag Geoff Ball HTML 2 07-09-2003 09:05 PM
Re: Language META Tag DU HTML 0 07-09-2003 08:15 PM



Advertisments