Solved

> BODY ONLOAD command not working on my page <

Posted on 2001-07-24
2
245 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 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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
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…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

728 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