Web Hosting Directory | Web Hosting Resources | Webmaster Resources | Domain Tools | Search Engine Marketing | Forums
  Signup
Today: 414   Yesterday: 1,557   Max: 1,872   Total: 377,689   Current Users : 12 (Member 0) 
DOMAIN TOOLS

WEBMASTER TOOLS

RELATED ARTICLES

SUBMIT AN ARTICLE

Write for us and get publicity, link to your website, and best of all get paid. Please visit our writers page for details.


LINK TO US

Link to us and earn points for each visitor you bring to us. Please visit our link partner page for details.

 

<SCRIPT ...>

Usage Recommendation
use it, but don't rely on it

  • TYPE: Which scripting language to use
  • SRC: External source for script
  • DEFER: Continue loading page while downloading script
 
  • LANGUAGE: Deprecated indicator of language
  • FOR: object for which this script is an event handler
  • EVENT: the event this script handles

<SCRIPT ...> designates a script section of the page. The contents of <SCRIPT ...> are run using the scripting language set by the rquired TYPE attribute. For example, the following <SCRIPT ...> sets a short JavaScript, by far the most common scripting language.

<SCRIPT TYPE="text/javascript">
<!--
document.write("right now: " + new Date());
//-->
</SCRIPT>

which outputs the current date and time:

It is a popular but inaccurate belief that the LANGUAGE attribute is required for <SCRIPT ...>. In fact, LANGUAGE has never been a required attribute and has not been the standard way to indicate scripting language for several years.

<SCRIPT ...> elements should always begin with <!-- on the first line. The last line should begin with the line-level comment string for the scripting language (// in JavaScript) followed by -->, as in the exampl above.



Copyright 1997-2002 Idocs, Inc. Written by Miko Sullivan.

 
 
What is your major source of website traffic?
 
 
 
 
 
 

ADVERTISEMENT

 
Cheap Web HostingBudget Web HostingEcommerce Web Hosting
Link to UsLink ExchangeAdvertisePrivacy PolicyTerms Of ServiceAbout UsContact UsSitemap
Copyright © 2006 - 2008 Broadband Media, Inc. All rights reserved.