Alert Messages


These are messages that can be displayed on a monitor screen, when a visitor arrives at your website or moves from one page to another. The visitor has to click on the OK button to progress to the desired webpage.

Uses:

It is possible to have several alert messages one after another, but they may try the patience of your visitor.

Here is an example of an alert message.

This effect is obtained by adding a javascript to the "head" or "body" area of your webpage.

Below are the instructions to copy and paste the desired HTML code into your webpage using Windows Notepad or similar HTML webpage editor:

Select the HTML code below (by "right clicking" with your mouse cursor inside the below code box window, then choose "select all" from the options). Then right click again on the highlighted text with your mouse cursor and choose "copy" from the options.

Then, open your desired webpage in Windows Notepad.

Move mouse pointer to location you require the code to be inserted on your page (the code should be pasted into the "head" or "body" section of your page), and left click there once to leave the flashing cursor.

Then right click and choose "paste" from the options.

The message can be changed to whatever you desire, also if you wish to have a series of alerts add further messages as follows:

<!-- hide from JavaScript deficient browsers

alert("Message number 1");

alert("Message number 2");

alert("Message number 3");

alert("Message number 4");

// done hiding --> </script>

Michael Fowler,  January 2001
 

Return to Home page