[thelist] Frames, Javascript and IE 5.5

Peter-Paul Koch gassinaumasis at hotmail.com
Sat Jul 21 06:57:16 CDT 2001


>: Can anybody tell me why the following
>: snippet of javascript (which works with
>: NN 2-6, Mozilla, and IE 3-5) won't work
>: with IE 5.5?
>:
>: parent.framename.location = "/dir/page.html";
>:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>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.
>
>parent.framename.location.href = '/dir/page.html';
>

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'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...

ppk


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp





More information about the thelist mailing list