[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Controlling location.href from another windows
Try displaying (use an Alert, for example) to see what the actual value of
.location is. I was doing something similar to what you are doing and found
that the value of .location contained a complete path, which I hadn't
anticipated. So I used a substring method to pick out the actual characters to
compare--something like
mumble.location.substring(a,b) == whatever
Bill
ORIGINAL MESSAGE:
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">');}