如:左侧框架内显示的是SOHU的主页,右侧框架的一个按钮,点击这个按钮,如何获得左侧框架中显示网页的URL下列代码,我都试过,提示没有权限
function GetURl()
{
  //alert(parent.leftFrame.document.location.href); 
alert(parent.window.frames["leftFrame"].location.href); 
//alert(window.location.href);
//alert(parent.leftFrame.document.location); 
//alert();
}还有没有其他方法?
跪谢!!!!!!!!!!!!!!!!1