473,513 Members | 2,709 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

body Onload wuth IE7

Can someone tell me why this code is good in firefox but not in IE7?

Thanks

<body onLoad=javascript:switchMenu('expandDesc_16')>

May 1 '07 #1
3 3930
VK
On May 1, 11:59 pm, "patrice.fi...@gmail.com"
<patrice.fi...@gmail.comwrote:
Can someone tell me why this code is good in firefox but not in IE7?

Thanks

<body onLoad=javascript:switchMenu('expandDesc_16')>
<body onload="switchMenu('expandDesc_16')">

May 1 '07 #2
It still not work in IE7

<body onLoad="switchMenu('expandDesc_16')">
This code works good on Firefox but not on IE?

:(

Any thoughts?
On May 1, 1:10 pm, VK <schools_r...@yahoo.comwrote:
On May 1, 11:59 pm, "patrice.fi...@gmail.com"

<patrice.fi...@gmail.comwrote:
Can someone tell me why this code is good in firefox but not in IE7?
Thanks
<body onLoad=javascript:switchMenu('expandDesc_16')>

<body onload="switchMenu('expandDesc_16')">

May 1 '07 #3
"pa***********@gmail.com" <pa***********@gmail.comwrote in
news:11**********************@y80g2000hsf.googlegr oups.com:
It still not work in IE7

<body onLoad="switchMenu('expandDesc_16')">
This code works good on Firefox but not on IE?
probably has to do with the function "switchMenu" itself... my quick guess
is that there is some whitespace in a node involved in the function, and IE
doesn't much like whitespaces...

May 1 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5779
by: Robert Oschler | last post by:
I have an frame in one of my documents (not a frameset document). The top level document has an "onload" handler in the BODY tag. I have found that if the frame is unable to navigate to the...
2
6196
by: Bender | last post by:
Hi, I am wanting to capture an onmousedown event without firing the body tags onload event. Also, if anyone could explain why this happens that would be excellent. I can't see how an...
2
3359
by: David Otton | last post by:
Hi, I'm seeing a difference in behaviour between window.onload = f(); and <body onload="f();"> Specifically, window.onload appears to fire before all the elements of the page have been...
4
14323
by: Viken Karaguesian | last post by:
Hello all, I have a question. I trying to run two Javascripts on my webpage, both of which need a <body onload> command. They are as follows: <body onload="runMe()"> <body...
2
7663
by: laredotornado | last post by:
Hello, I am looking for a cross-browser way (Firefox 1+, IE 5.5+) to have my Javascript function execute from the BODY's "onload" method, but if there is already an onload method defined, I would...
0
1280
by: Andy Fish | last post by:
Hi, I managed to figure this one out for myself but thought I would post it here for the general good. I have an asp.net 1.1 application which was using smart navigation and also had a <body...
5
2286
by: tuxedo | last post by:
The way the <body onload="something()"works ensures that the complete html document is loaded before something() is executed. Can the same be achieved when placing the onload call in document...
4
4032
by: Jason | last post by:
Hi, Here's the scenario: I have a web application that has window A and window B. A user has both window A and B open - window A is in the foreground and window B is behind it. If the...
2
6143
by: WGW | last post by:
Hello all, I need another set of eyes cause it just isn't working, no matter how identical I make it. The initRotator function works when called by itself, but when adding another function, only the...
0
7254
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7373
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7094
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7519
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5079
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1585
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
452
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.