473,396 Members | 1,914 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1832
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
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...
9
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
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
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....
0
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...
7
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...
6
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: ...
1
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...
1
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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
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...
0
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,...
0
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.