alert(window.parent.frames.toolbar.location)
the alert is undefined in Firefox, IE it work fine.
Use this
alert(window.parent.frames[0].toolbar.location);
That should work.
As my comment said. window.frames is a list containing all frames in a window. You need to select the correct window, which I guess is the one with index 0.
window.frames
window
0
1.4m articles
1.4m replys
5 comments
57.0k users