Solved

> BODY ONLOAD command not working on my page <

Posted on 2001-07-24
2
213 Views
Last Modified: 2006-11-17
Hi,

I have a web page where the the body tag doesn't execute the onload command.

I have created a blank page that has the same command and it runs fine - any ideas?

My page is at www.csa-northwest.com/idsun/indexlayers.htm - it does have layers - could that be it?

code: <body onload="alert('onload works')">

Regards

Charlie
0
Comment
Question by:cmuir
2 Comments
 
LVL 5

Accepted Solution

by:
raizon earned 25 total points
ID: 6312987
The reason is because you have another onload event being called which takes presidence.

window.onload=getcontent_height

if you comment out the above line you will notice that your onload event in the body tag now works.
0
 

Author Comment

by:cmuir
ID: 6313029
Doh - I'll read the code! - thanks raizon

C
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question