?
Solved

> BODY ONLOAD command not working on my page <

Posted on 2001-07-24
2
Medium Priority
?
261 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 100 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
Suggested Courses

839 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