Warn and Send Away

[Total: 0    Average: 0/5]

This will open up an alert stating that this page is under construction and send the user to another page.

Body Code:

<SCRIPT LANGUAGE="JavaScript">
<!---------- JavaScript begins...

ShowMessage = true; 
	// Set to true if you want to show a message box with a message, 
	// otherwise set to false

Message = "THIS PAGE IS UNDER CONSTRUCTION !";
	// The message that will be shown

URL = "http://www.js-examples.com/";
	// The URL of the page that the user will be forwarded to

if (ShowMessage == true) {
	alert (Message);
}

window.location = URL;

// JavaScript ends ---------->
</SCRIPT>

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *