473,804 Members | 3,228 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

onload and bak button

hi, i'm andrea from italy. i'm starting with javascript.
It happen that after using onload the back button of the browser
doesen't go.
this is the example: inside the body tag of my html page i wrote
<body onload="dadove( );">

dadove is a simple function to write something.

after this, i use a link on another page to arrive to the page;
pushing the back button,instead to go forward, the page is reloaded!

it's normal?
andrea

ps. bleah, my english is...
Jul 23 '05 #1
1 1850
In article <a5************ **************@ posting.google. com>,
an************* ***@libero.it wrote:
hi, i'm andrea from italy. i'm starting with javascript.
It happen that after using onload the back button of the browser
doesen't go.
this is the example: inside the body tag of my html page i wrote
<body onload="dadove( );">

dadove is a simple function to write something.
The function dadove will be called when the page is completely loaded.
Sometimes a large image takes awhile to load which will delay the
calling of your function.

To debug this sort of problem, I put an alert in the onload and the
first line of the function.

By default, IE doesn't report errors. You will need to turn on error
reporting. A better option is to download Firefox and look at the
JavaScript console,
after this, i use a link on another page to arrive to the page;
pushing the back button,instead to go forward, the page is reloaded!

it's normal?


Yes. You would not think it would be necessary, but the is how it works.

Robert
Jul 23 '05 #2

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

Similar topics

3
2096
by: kj | last post by:
This problem is driving me nuts. The code at the end of this post below works fine with IE, but fails with Mozilla. You can see it in action at http://tinyurl.com/2jvo3 With Mozilla 1.4 and 1.6, the function msg works fine if it's installed as an onclick handler for the button, but fails as an onload handler for the page. The error is "console has no properties", and is triggered by the line.
9
22449
by: nntp | last post by:
Is there anyway to do something exactly like onload, but without the word onload? I am trying to write inline js without onload, so I don't know how to trigger/start the script.
2
3379
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 rendered. As the difference is consistent across
4
4542
by: PJ6 | last post by:
Say I have serveral controls, all of which need to emit clientside script to execute on page load. They can't emit to OnLoad = <functionname> because then only one of the scripts will get executed. Is there a way around this? Paul
0
1570
by: Fabio R. | last post by:
Every webform in my application inherit from a base custom class. In this class I override the OnLoad method and call the base.Onload in it. Sometimes, the OnLoad in the webform is not executed after a form submit also if the base.OnLoad is called. It's the same behavior of pressing the "enter" key in a texfield within the form but I can see the submit button in the Request.Form collection, so is not that kind of problem. Today I get...
7
13044
by: sunilp | last post by:
Consider this scenario.. I m on page "1.html" in IE(6) and click on href which takes me to "2.html". I press browser back button. Then "onload" method of 1.html is fired. onload is not fired on back button in Firefox but IE does. I want to distinguish between first load of the page and false "onload" fired by back button. How do i do this?
6
1817
by: =?ISO-8859-1?Q?Une_B=E9vue?= | last post by:
i'd like to intercept the window.onload event in order to distribute it, as needed, to several methods. example : suppose i have several methods doing unlinked initialisations: method_1=function(e){<initializes variable 1>} .... method_n=function(e){<initializes variable n>}
1
7431
by: sklett | last post by:
I've got a strange situation here. I have a databound DataGridView that also has un-bound columns. When the view loads, I want to update the values of the unbound columns. If I attempt to modify the unbound column's cells in the OnLoad() handler the results are very strange. If I add a button to my view and update the unbound cells in the butt's handler it works fine. Here is an example of the code I'm trying to use (it's test code):...
1
8172
by: zebra242 | last post by:
I'm working to get the onLoad function of a javascript to work: the script allows form buttons in html to refer to labeled frames in flash. Which works fine. Now I want to add onLoad functionality to force the flash file to jump to a labeled frame on load. This is the Javascript in the head of the html file: <!-- function getFlashMovieObject(movieName)
0
9708
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9588
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10589
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10085
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7625
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5527
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4302
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 we have to send another system
2
3828
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2999
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.