Metachecker.net
|
FontsMadeEasy.com
|
RankChecker.net
Learn Java Script Today
|
Over 5000 Free Fonts
|
Tutorials
|
Javascript Forum
|
Other Javascript Resources
|
Cheat Sheet
JavaScript Basics
Inserting Javascript
Complete Tutorial
Advance DHTML Tutorial
Script archive
Advanced Tutorials
Alert Scripts
Animation
Audio
Background Effects
Banner Ads
Browser Window
Buttons
Button Forms
Calculcators
Calendars
Clocks & Dates
Cookies
Cursor Effects
DHMTL Games
DHTML Miscellaneous
Equivalents
Forms
Games
IE4+ Scripts
IE5+ Scripts
Image Effects
Image Miscellaneous
Links & Buttons
Math Related
Messages Miscellaneous
Miscellaneous
Mouse Tricks
Navigation
Page Details
Password Protection
Pulldown Menus
Random Stuff
Scrolling
Status Bar
Text Animation
User Detail
User Info
Window Control
Virus
Use JavaScript to give your visitors a little scare. Some of the more gullable visitors will even close be convinced that their computer has been completely contaminated.... Just another neat JavaScript effect.
Insert into <HEAD>
<SCRIPT LANGUAGE="JavaScript"> <!-- Begin function confirmClose() { alert("Error: 107x has occurred. A virus has begun to infect your hard drive. Please erase all infected files.") if (confirm("Please inform the the hardware vendor of this error.")) alert('The virus has been contained but the browser will shutdown to check for and prevent further internal damages.'); else alert('The problem has not been fixed, the browser must be shut downtown to prevent further contamination.'); { parent.close(); } } // End --> </SCRIPT>
Insert into <BODY>
<CENTER> <FORM> <input type="button" value ="JavaScript Virus (not really...)" onClick="confirmClose()"> </FORM> </CENTER>
Other Options