Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

is it necessary to have <- - in javascript

Status
Not open for further replies.

Candyb

Technical User
Oct 2, 2001
12
CA
Hi, I was just wondering when working with client/server stuff and javascripts why under the script tag is there usually the <! -- tag and why it also works without one.

Thanks,
Candy
 
The
<!-- and --> in your client-side scripts are for old browsers that don't recognize javascript. When they get the the <!-- tag it thinks it is a comment and doesn't show it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top