With the newer browsers you could try querying the value in

document.getElementById('frameID').contentDocument.URL

where the frame tag looks similar to :


<iframe id="frameID".....