Sometimes I use:
window.frames[framename].location.href
.. only for lookup reports firebug window.frames[framename].location is null, why should it be?
window.frames[framename].location
Is the frame on a different domain? you may find yourself restricted because you cannot access content from another domain (e.g. XSS)