if (self==top) ;
window.location.href = "Web/Web.asp\?from="+ window.location.href;Web.asp:
<%
Dim from
from = Request.QueryString("from")
%>
<frame name="bodyFrame" src="<%if from<>"" then Response.Write from else Response.Write "Desktop.asp" %>">
window.location.href = "Web/Web.asp\?from="+ window.location.href;Web.asp:
<%
Dim from
from = Request.QueryString("from")
%>
<frame name="bodyFrame" src="<%if from<>"" then Response.Write from else Response.Write "Desktop.asp" %>">
<script>
if(top==self)
{
location.href='default.htm';
}
</script>
default.htm中
<script>
window.frames["bodyFrame"].src = 'b.htm';
</script>
稻草人的办法我试过了不行的。