Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #18174

Re: IE8 attachEvent problem

Newsgroups comp.lang.javascript
Subject Re: IE8 attachEvent problem
From "Evertjan." <exxjxw.hannivoort@inter.nl.net>
References <am2ojqFk54hU1@mid.individual.net> <XnsA14ECD702F2eejj99@194.109.133.133> <am31v9Fmcu4U1@mid.individual.net> <6nlof8pgvu18gr4a6ctul5081r2qkr5p78@hive.bjoern.hoehrmann.de>
Date 2013-01-21 00:07 +0100
Message-ID <XnsA14F13653D5Feejj99@194.109.133.133> (permalink)

Show all headers | View raw


Bjoern Hoehrmann wrote on 20 jan 2013 in comp.lang.javascript:

> * Mel Smith wrote in comp.lang.javascript:
>>    On IE8, I get the error 'body is undefined'
> 
>>body.onload="document.getElementById(tid).scrollIntoView();"
> 
> You are probably looking for `document.body`.

Right. 

However the above still cannot be working 
in a function that is executed after the page is ready,
as the unload executes as the last part of the loading process.


I suppose the OP wants the page to store somewhere the position
of the page shown, and retrieved in a next invocation of that same page 
later. The document.body.onload='' or the <body onload='..'> should work on 
that next page if executed during the loading. 

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

IE8 attachEvent problem "Mel Smith" <med_cutout_syntel@aol.com> - 2013-01-20 10:42 -0700
  Re: IE8 attachEvent problem Martin Honnen <mahotrash@yahoo.de> - 2013-01-20 18:55 +0100
    Re: IE8 attachEvent problem "Mel Smith" <med_cutout_syntel@aol.com> - 2013-01-20 10:59 -0700
      Re: IE8 attachEvent problem "Mel Smith" <med_cutout_syntel@aol.com> - 2013-01-20 11:24 -0700
        Re: IE8 attachEvent problem Martin Honnen <mahotrash@yahoo.de> - 2013-01-21 12:06 +0100
          Re: IE8 attachEvent problem "Mel Smith" <med_cutout_syntel@aol.com> - 2013-01-21 09:52 -0700
  Re: IE8 attachEvent problem "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-20 20:11 +0100
    Re: IE8 attachEvent problem "Mel Smith" <med_cutout_syntel@aol.com> - 2013-01-20 13:21 -0700
      Re: IE8 attachEvent problem Bjoern Hoehrmann <bjoern@hoehrmann.de> - 2013-01-20 21:44 +0100
        Re: IE8 attachEvent problem "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-21 00:07 +0100
        Re: IE8 attachEvent problem "Mel Smith" <med_cutout_syntel@aol.com> - 2013-01-20 16:19 -0700
          Re: IE8 attachEvent problem "Mel Smith" <med_cutout_syntel@aol.com> - 2013-01-20 17:18 -0700
    Re: IE8 attachEvent problem Martin Honnen <mahotrash@yahoo.de> - 2013-01-21 18:28 +0100
      Re: IE8 attachEvent problem "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-21 19:07 +0100
        Re: IE8 attachEvent problem Martin Honnen <mahotrash@yahoo.de> - 2013-01-21 19:33 +0100
        Re: IE8 attachEvent problem "Mel Smith" <med_cutout_syntel@aol.com> - 2013-01-21 13:05 -0700
          Re: IE8 attachEvent problem "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-22 09:00 +0100
  Re: IE8 attachEvent problem Arty Effem <ignoring@mail.com> - 2013-01-23 13:49 -0800

csiph-web