[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

> BODY ONLOAD command not working on my page <

Posted on 2001-07-24
2
Medium Priority
?
256 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

656 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