The Script Tag


script-tag

The script tag is used to indicate that the text enclosed in the tag is to be interpreted, not displayed and used on both the client and the server.

Client scripting is not Active Server Pages and is dependent on the browser for the implementation of any scripting language. Scripting language varies with browsers and may even vary within versions of the same browser. Client script is only mentioned here to differentiate from Active Server Pages and server-side scripting in general.

Script Tag for non-ASP Clients

The script tag for use within browsers is as follows:
PHP Code:
<SCRIPT LANGUAGE=XXX>

<!—script commands -!>
</SCRIPT>
The type of language supported, and the object model for the browser is browser specific.

Script Tag on Active Server Pages

Active Server Pages on the server use a similar tag, with a few changes. First, there must be a method to specify that the script is to run on the server and not to the client.

A script on an Active Server Page enclosed in the following tags:

PHP Code:
<SCRIPT LANGUAGE=XXX RUNAT=SERVER>
<!—Server-side script
–!>
</SCRIPT>
Alternately, for convenience and to reduce the complexity of the scripted pages, the server side script tag may be shortened as follows:

PHP Code:
<?PHP
<!—Server-side script
–!>
?>
In this case, notice that the script runs on the server and, therefore, is not browser-specific. The output of this script can display any content to the user and may be browser-specific. In fact, ASP scripting can be used to create client-side scripting at run time.

Companies Price Server Location Price Visit Now
adroitssd
Cloud SSD Hosting
$1.43 /mo. WILMINGTON, DE, US Price @ $1.43 /mo. Visit Now
247-host $2.99 /mo. LASALLE, CA Price @ $2.99 /mo. Visit Now
ehost.com $2.75/mo. Burlington, MA, US Price : $2.75/mo. Visit Now
siteground
Lifetime Free Domain
$3.95/mo. Panama, PA Start @ $3.95/mo. Visit Now
webhostingpad $1.99/mo. Arlington Heights, IL, US Start @ $1.99/mo. Visit Now
webhostingbuzz $4.95/mo AUBURN, MA, US Start @ $4.95/mo Visit Now
ipage
Cheapest Webhosting
$3.25/mo. Burlington, MA, US Start @ $3.25/mo. Visit Now
ixwebhosting $3.95/mo Columbus, OH, US Start @ $3.95/mo Visit Now
sitevalley $4.95/mo NASHUA, NH, US Start @ $4.95/mo Visit Now
liquidweb.com
Managed WordPress Hosting
$89.00/mo. Lansing, MI, US Price : $19.00/mo. Visit Now