COMS303 E-Commerce Scripting Languages
OBJECTS LAB
Description:
This lab will display your ability to use a variety of built in objects
available to a web page being displayed in a browser. The concept of
object oriented programming is to use existing objects to perform desired
functions or create your own objects to handle repetitive activities.
Instructions:
Create a simple web page called Coms303Objects.htm. Include the basic
structure tags and a title with your name and Objects Lab in the title.
You are welcome to apply any presentation changes, if desired.
- Create a dialog box that will capture the user's name using a function
called inputName(). Activate this function when the page loads.
- Update the Status message with the input name and the current date.
- Use a script tag and the Date() to display the following line in a
paragraph: Today's Date: xxxxxx
- Use a script tag and the Navigator object to display the name of the browser currently in
use: Your Browser is: xxxxxxxxxx
- Create a button on the page using the <INPUT> tag. When the
button is clicked, send the user to www.dmacc.edu
using the Location object.
- Create a button on the page using the <INPUT> tag. When the
button is clicked it will activate a function called newWindow(). This
function should open a new window that is 300 by 300 and displays only the
menubar. Display www.google.com in
the window.
- On the button described above, display the following message in the status
bar when the event onmouseover occurs on the button: "This Will
Send you to GOOGLE.com".
- On the button described above, return the original message to the status
bar when the event onmouseout occurs on the button.
|