window.parent.location.replace(document.URLUnencoded) 在 asp.net

window.parent.location.replace(document.URLUnencoded) in asp.net

我正在浏览一个 Asp.net 项目文件。 因为当会话过期或会话变量为 null 或空时,他们正在导航到 htm 页面

if (Session["UserID"] == null)
        {
            Response.Redirect("Expired.htm");
        }

在那个 htm 中。在 javascript 之后的 onload 函数中有

function SessionExp()
            {         
                if(window.parent.length > 0) 
                {
                    window.parent.location.replace(document.URLUnencoded);                   
                }      
             }

window.parent.length,document.URLUnencoded是什么意思,有时document.URLUnencoded返回Nan,什么是什么意思?.

注意:使用了 iframe。

谁能解释一下....

The URLUnencoded property is a non-standard, Internet Explorer specific property. You cannot use it from any other browser. The location.href property 应该 return 您需要的值。