Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 24th, 2005, 01:27 AM
Registered User
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default "text/javascript" and "javascript"

Can anyone describe what is the difference between script tag "text/javascript" and "javascript"??

Old June 24th, 2005, 07:20 AM
richard.york's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts

text/javascript is the MIME type, and is the standard way of specifying the script language, as in type='text/javascript'. Just javascript is the old school method, as in language='javascript'. You can put them both on the script tag, but language='javascript' does not validate (via validator.w3.org).


Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design

Similar Threads
Thread Thread Starter Forum Replies Last Post
stop current javascript function using javascript sakthi Javascript 3 June 2nd, 2008 03:30 PM
Making text blink in a gridview with Javascript. Andrew.Berry Other Programming Languages 6 February 14th, 2008 05:26 PM
ASPX text box retain value after...javascript. peter2004 ASP.NET 2.0 Basics 5 February 26th, 2007 09:22 PM
change text colors in an javascript Alert? larry Javascript How-To 5 February 12th, 2007 08:03 AM
javascript color coded text comparison jringwald Classic ASP Components 0 June 27th, 2003 10:42 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.