It's free and you have access to premium codes!
Welcome back! Please login to your account.
Don't worry, we'll send you a message to help you to recover your acount.
Written by 21 August 2012
Show a message when enters to website and a message when he/she wants to exit or redirect the page
<!-- this script is provided by www.javascriptfreecode.com coded by: Kerixa Inc. -->
<script language="javascript" type="text/javascript">
alert("Welcome to my weblog")
</script>
<h1>
<!-- hide script from old browsers -->
<!--this is on example of a long JavaScript comment-->
<script language="javascript" type="text/javascript">
document.write("IranJavaScript")
//end hiding script from old browsers -->
</script>
</h1>
</body>
</html>
<!-- DESCRIPTION: This will cause an elert message before your visitor leaves (OR reloads) your page.
INSTRUCTIONS: Place this tag where your BODY tag is. Make changes to attributes (TEXT, LINK, VLINK, BGCOLOR, etc.) as necessary.
FUNCTIONALITY: Works in both Netscape and IE.
//Modified by CoffeeCup Software
//This code is Copyright (c) 1997 CoffeeCup Software
//all rights reserved. License is granted to a single user to
//reuse this code on a personal or business Web Site.
-->
<BODY onUnload="window.alert(' Good Bye ')">
</BODY>
<!-- DESCRIPTION: This will cause an alert message before your visitor leaves (OR reloads) your page.
INSTRUCTIONS: Place this tag where your BODY tag is. Make changes to attributes (TEXT, LINK, VLINK, BGCOLOR, etc.) as necessary.
FUNCTIONALITY: Works in both Netscape and IE.
//Modified by CoffeeCup Software
//This code is Copyright (c) 1997 CoffeeCup Software
//all rights reserved. License is granted to a single user to
//reuse this code on a personal or business Web Site.
-->
<a target='_blank' href='www.javascriptfreecode.com' style='font-size: 8pt; text-decoration: none'>JavaScript Best Codes</a>