Peter Bremer wrote:
[color=blue]
> "Peter Bremer" <-> wrote in message
> news:3f27c5ea$0$49110$e4fe514c@news.xs4all.nl...[color=green]
> >
> > "Lasse Reichstein Nielsen" <lrn@hotpop.com> wrote in message
> > news:el08gnnw.fsf@hotpop.com...[color=darkred]
> > > "Peter Bremer" <-> writes:
> > >
> > > > I've written this little piece of code, which doesn't seem to work in
> > > > Mozilla 1.5. I haven't tried it on other Gecko browsers, but I've[/color][/color]
> found[color=green][color=darkred]
> > > > some indication that Netscape 6+ has the same problem. Internet[/color]
> > Explorer 6[color=darkred]
> > > > and Opera 7 have no problems with it.
> > > >
> > > > <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN'
> > > > 'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'>
> > > > <script>document.write (window.history.length);</script>
> > > >
> > > > Mozilla returns the error "window.history has no properties".
> > >
> > > My Mozilla Firebird v0.6 has no problems with it.
> > > Can you show a live page where it fails?
> > >
> > > /L
> > > --
> > > Lasse Reichstein Nielsen -
lrn@hotpop.com
> > > Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
> > > 'Faith without judgement merely degrades the spirit divine.'[/color]
> >
> > The code I wrote is enough to duplicate the problem on Mozilla 1.5a. Just
> > copy those 3 lines to an empty HTML file, run it, see the empty results
> > page, and check the JavaScript Console under Tools > Web Development >
> > JavaScript Console...
> > I am now downloading Firebird v0.6.1 to check the problem there...[/color]
>
> Okay, the problem is not there in Firebird v.0.6.1, so maybe it is a
> Mozilla-specific problem?[/color]
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN'
'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'>
<script>document.write (window.history.length);</script>
Works in Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030730
Works in Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030729
Works in Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5a) Gecko/20030718
Works in Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624
Works in Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3.1)
Gecko/20030425
If it's not working in one of the above versions for you, perhaps your Mozilla
installation is broken. There may also be bugs on a different platform which are
not appearing on Windows.
--
| Grant Wagner <gwagner@agricoreunited.com>
* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html
* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp
* Netscape 6/7 DOM Reference available at:
*
http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 6/7 and Mozilla
*
http://www.mozilla.org/docs/web-deve...upgrade_2.html