alert("In addition to the basics of javascript - This 1st page will teach you how to make those ANNOYING pop-up boxes that everyone hates! (And most browsers will block nowdays).");
// END of JAVASCRIPT code -->
</script>
The <! is a comment line code in HTML, but not in JavaScript. So the Web Browser reads this as a simple comment, and ignores it until it sees the > at the end. If however, the system is JavaScript enabled, it will read the rest of the code and process it as normal. Also the double slash "//" before the "--end of HTML comment-->" is done so JavaScript doesn't read the closing HTML > as an error.
Editorial Notes on the use of Multiple Alerts
While it is entirely possible to generate a series of alerts popping up one after another, it is quite annoying. It can also be a turnoff to all your web site viewers, and can really tick people off if it is done maliciously. As such - many search engines look for pages that do this and BAN them from search engine placement - just like they would any page that they knew or could detect contains a malicious virus. That being said - here's how it works - purely for educational purposes. I'm certain, though, that none of you would EVER do this... right?
<script language="JavaScript">
alert("Yet Another Annoying Popup!");
alert("Yet Another Annoying Popup!");
alert("Yet Another Annoying Popup!");
alert("Yet Another Annoying Popup!");
alert("Yet Another Annoying Popup!");
alert("Yet Another Annoying Popup!");
alert("Yet Another Annoying Popup!");
</script >
[
ElectronicsTheory.Com
]
This Course was written by Ray Dall © All Rights Reserved.
This page and all it's content Copyright, Trademarks, Intellectual Properties
and other legal issues 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Ray Dall.
All Rights Reserved.
And for what it's worth... this page was last updated HexDate 01-11--7D1
VISITORS: