Demonstration of HTML and simple javascript
Not what you're looking for?
Please see attached instructions. Thanks.
Simple JavaScript Event
Step 1: Using a text or HTML editor create a web page with the following content and formatting:
Put an image in the background of your page (make sure that it is a very faded image so that you can see text on top of it)
In header tags of decreasing size centered on the page:
o Name
o Course
o Lab
Step 2: In the head section of your document, put a JavaScript block that properly comments out the code from older browsers. Create a function in the script block called MyLoadFunction. Make the function call the alert() method and include the message "Welcome to my Lab 5!".
Step 3: Modify the body tag of your page to include the onLoad event handler. Within the event handler call the MyLoadFunction().
Step 4: Save the web page in two different formats: Once as a text document that you entitle lab5xx.txt and again as lab5xx.htm.
Purchase this Solution
Solution Summary
This solution demonstrates how to create a simple HTML file that contains three headings and an image. It also shows a javascript function that runs on the page load.
Solution Preview
The posting requires understanding of a few HTML and Javascript concepts. For HTML we are asked to create a basic page that contains a background image and three centered headings.
The background image is created by adding the "background" attribute to the "body" tag. The value of the "background" tag is the name of the file that will be the background ...
Purchase this Solution
Free BrainMass Quizzes
C# variables and classes
This quiz contains questions about C# classes and variables.
Excel Introductory Quiz
This quiz tests your knowledge of basics of MS-Excel.
Basic Computer Terms
We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.
C++ Operators
This quiz tests a student's knowledge about C++ operators.
Java loops
This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.