[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Controlling location.href from another windows

I got stuck with such problem:

I need to control url of one frame from another and resulting different
actions. What is wrong with this code?

If ((window.frames[1].location==" url here ") 
 { document.write('<IMG SRC="cbullet.gif">'); }
else {document.write('<IMG SRC="bullet.gif">');}

anybody got idea? I wanna put one icon if the url for frame 1 is correct, 
and another if wrong.

Vahan Yerkanian,
Webmaster @ http://www.arminco.com/
Matenadaran Computer Labaratory Chief
Art Director of Multi-M Team, ARMINCO Ltd.