Writing for the World Wide Web | |
Home Course Information Assignments Schedule Class Notes Resources Student Pages |
Class Notes
Planning Site Navigation Organizing WWW Files Using Webpage Editors Upload / Download (FTP) Visual Design Appropriate Use of Technology Unix Commands Cascading Style Sheets JavaScript |
Window Alert
Sometimes you want to inform your audiences of certain information before they enter your website. For example, if your page requires a certain browser (using the "System Detection" JavaScript), you could alert your audiences to this before your page loads with an alert window. Here are the lines of code; play around with them and see what you can do. There are different ways alert windows could be implemented into a page:
The above lines of code placed in the head of your document will generate the alert window you saw when this page loaded. Here is a basic breakdown of what each part means:
You could also make links that alert users to information, as shown in the example below:
The above lines of code placed in the body of your document will allow users to click the link and get the URL information. Here is the code:
|