Solved

> BODY ONLOAD command not working on my page <

Posted on 2001-07-24
2
184 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
Comment Utility
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
Comment Utility
Doh - I'll read the code! - thanks raizon

C
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
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 …

744 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now