in reply to CGI Debugging: always the last place you look.

Surely the browsers which call the code twice are actually more correct. They execute the javascript and the hyperlink, which seems to be what the html above mandates (not sure what the standard says, but I'd be suprised if they said only one should get executed). Also, kudos for testing Safari on the mac. Lots of people leave non M$ browser testing out, or figure mozilla covers the 'rest'.
  • Comment on Re: CGI Debugging: always the last place you look.

Replies are listed 'Best First'.
Re: Re: CGI Debugging: always the last place you look.
by diotalevi (Canon) on Mar 05, 2004 at 22:11 UTC
    Are you sure about that? Once you've instructed the browser to navigate elsewhere it shouldn't still attempt to retrieve some other web page. That should be a trip into onunload and then to the new page with no excursion for the other page which would have been loaded otherwise.

    I'd consider the browser that requested the page twice to be incorrect and curse it a bit. I'd still fix the page so it worked correctly regardless but be sure to harbor some ill will to the poorly performing browser.

Re: Re: CGI Debugging: always the last place you look.
by Anonymous Monk on Mar 05, 2004 at 23:19 UTC
    Actually, I wouldn't fault the browser. The html is invalid and the behaviour is undefined.