By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,654 Members | 1,422 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,654 IT Pros & Developers. It's quick & easy.

onload and bak button

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.