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

本文关键字:URLUnencoded in asp document parent location replace window | 更新日期: 2023-09-27 17:59:31

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

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

在该htm中。在onload函数中,下面的javascript有吗

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

什么是windowparent.length文档。URLUnencoded的意思是,有时是文档。URL编码的reurns Nan,这是什么意思?。

注:使用Iframes。

任何人请解释一下。。。。

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

URLUnencoded属性是一个非标准的、特定于Internet Explorer的属性。您不能从任何其他浏览器使用它。location.href属性应返回所需的值。