By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,480 Members | 1,215 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,480 IT Pros & Developers. It's quick & easy.

script tag

P: 16
Can you please show me why and how do we use <!-- tag in html java script..?
thanks in advance
Nov 22 '07 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 5,390
i think the reason WAS that some very old browsers wasn't js-capable and putting the html-comments around the code forced them to ignore the code ... but today ... you should simply leave that out :)

kind regards
Nov 22 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.