BizTalk Utilities CV ,   Jobs ,   Code library  
 
Home Page
XHTML
The XHTML <q> Tag
The XHTML <pre> Tag
The XHTML <phrase_tags> Tag
The XHTML <param> Tag
The XHTML <p> Tag
The XHTML <option> Tag
The XHTML <optgroup> Tag
The XHTML <ol> Tag
The XHTML <object> Tag
The XHTML <noscript> Tag
The XHTML <noframe> Tag
The XHTML <meta> Tag
The XHTML <menu> Tag
The XHTML <map> Tag
The XHTML <link> Tag
The XHTML <li> Tag
The XHTML <legend> Tag
The XHTML <label> Tag
The XHTML <ins> Tag
The XHTML <input> Tag
<< XALAN
XML DOM >>

By :Mark Wilson
I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :03/24/2008
Times viewed :4094

 

The <script> tag (XHTML Reference)

Introduction

The <script> tag is used to define a block, which is used for a scripting language. Script languages are mostly used to calculate or to do something else with data. For example, you can ask the user for his name print it out, but remember that this code should be in the script block. A script block is usually placed in a <head> tag; but if you want you can put it anywhere you like – even in a separate script file. Furthermore you can include any amount of script tags, as you like.

Example

<SCRIPT language='javascript'>

function GetName()

{

            var name = prompt('Enter your name please','');

            document.write('hello ');

            document.write(name);

}

</script>

<title>Get Current Date</title>

</head>

<body onload="javascript:GetName();">

</body>

</html>

Output

After entering Sonu and pressing the OK button the following screen appears.

Attributes

Name:

Description:

charset

Defines the character coding of the target url or writes a page on charset.

defer

This is an empty attribute and forbids the script to generate any document content.

event

The script will be run only when a specific event occurs.

for

Defines the ID of the element, which the script is valid for.

language

Defines the scripting language.

src

Defines a URL or path of the file which contains the script code.

type

Defines the mime type of the script. Can be one of the following:

text/ecmascript

text/javascript

text/jscript

text/vbscript

text/vbs

text/xml


Rate this article on a scale of 1 to 10

Your vote :  


 

Recent Jobs

Integration Specialist Needed - Wor
Virtualization Server Infrastructur
A great opportunity to Digital Vide
here is a greate opportunity as a S
A great opportunity as a Network En

View all Jobs (Add yours)
View all CV (Add yours)




swimming pool builder
chicago web site design
online fax
Cheap Web Hosting
online faxing
Giorgio armani sunglasses
answering service


    Email TopXML  

Front Page Daily Stuff TopXML Forum XML blogs XML Newsgroups BizTalk Biztalk Utilities Biztalk Utilities Tutorial B2B SAP XML Microsoft .NET Dotnet System XML Soapformatter SQLXML XMLserializer XQuery PHP PHP SimpleXML PHP XML Dom PHP XML RPC PHP XSLT Java Java Java XML Xalan Microsoft ASP ASP Schemas XML SQL Server XML XMLDom XSL XSL Tutorial XSLT Stylesheets General Javascript CSS XHTML WAP