dear talented boys and girls,
i have some problems in writing javascript in the following situation:
could anyone tell me whats wrong with this:
window.parent.frames[2].src;
What were you looking for? I don't recall seeing a .src property for a
window object.
Assuming MSIE compliance, there is no src property of window.
<
http://msdn.microsoft.com/library/default.asp?
url=/workshop/author/dhtml/reference/objects.asp>
Perhaps you meant location?
Note: location is also an object. If you want the URL as a string, use
window.location.href.
Also, keep in mind that arrays are 0-based in JS.
frames[0], frames[1], etc.
frames[2] is the THIRD frame in the frameset.
You're really better off using names.
Name the frame in the frameset, then use
frames['theNameOfTheFrame']
That way, if they get moved around, you don't have to change anything.
HTH
--
--
~kaeli~
She was engaged to a boyfriend with a wooden leg but broke
it off.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace