| Home | Web Design Tutorials | Free Graphics | Newsletter | Products | Specials | SEO | Sound Effects | Member Perks | Member Login | View Cart |
Create an Alert BoxHere's a very simple JavaScript snippet that will cause an alert box to pop up when your page loads, but then, you already saw it didn't you. Man, you're hard to surprise.You can put most any text message you want in the alert box. It could be a welcome message, call attention to a new item or new page, or just tell someone their Aunt Fred wears army boots ...and she does, too. I've seen her in them. The Dirt on the AlertJust add this little JavaScript snippet to the BODY tag of your web page.
onLoad="alert('Put Your Way Cool Message Here')"
Where it says Put Your Way Cool Message Here is what will show up in the
Alert Box. Two things to note:
onLoad="alert('Never say you can\'t do it.')"
Alert When LeavingTo have an alert box pop-up when someone leaves the page instead of when they enter the page, change onLoad to onUnLoad.That's all there is to it. Now go alert the world, you alarmist. Well . . . alertist didn't sound right. |
Almost a NewsletterSubscribe today and get a free gift, The Science of Getting Rich. Learn more, or subcribe below:Did you know...The member's site has about 100 standards compliant HTML and CSS tutorials, 31 handy reference charts, reprintable content, web graphics, exclusive fonts, free software, free ebooks and more? All this for less than 9 cents a day! [ Details ] |
|
Home | Web Design Tutorials | Free Graphics | Newsletter | Products | Specials | SEO | Sound Effects
Member Perks | Member Login | About BoogieJack.com | Contact | Privacy Policy | Copyright Policy | Links
| |