Script Categories

Miscellaneous >>> 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.

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">
/* Visit for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- 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.' );
alert( 'The problem has not been fixed, the browser must be shut downtown to prevent further contamination.' );
// End -->
<input type="button" value ="JavaScript Virus (not really...)" onClick="confirmClose()">

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.

Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).