[thelist] Frames, Javascript and IE 5.5
.jeff
jeff at members.evolt.org
Mon Jul 23 12:25:01 CDT 2001
ppk,
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: From: Peter-Paul Koch
:
: > probably cause you're not referencing it
: > correctly. if you want the browser to
: > initiate a page change, then you need to
: > change the href property of the location
: > object.
:
: I used to think so too, but I just tested it
: and found no difference at all between location
: and location.href: both work fine in IE5.5
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
i'm curious whether that solved the original problem though. there's just
too many little inconsistencies between platforms and minor versions to know
for sure without hearing back.
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: I've heard this question before, I also thought
: the .href was the answer, but it isn't (at least,
: not in my tests). Strange, very strange...
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
agreed -- very strange. in most aspects of documentation, it states that
setting the value of the location object or its href property is equivalent.
however, in the href property definition i found the following:
"The href property specifies the entire URL.
Other location object properties are substrings
of the href property. If you want to change
the URL associated with a window, you should
do so by changing the href property; this
correctly updates all of the other properties."
<http://developer.netscape.com/docs/manuals/js/client/jsref/location.htm#119
3550>
very interesting.
thanks,
.jeff
http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/
More information about the thelist
mailing list