关于iframe.
par.html
中用到了
<IFRAME ID= 'Iframe_Product ' name= "Iframe_Product " FRAMEBORDER=0 SCROLLING=NO width= "780 " height= "600 " SRC= "chi.asp "> </IFRAME>
怎样实现,我在浏览器中直接键入chi.asp时,chi.asp自动套用par.html?
谢谢。
------解决方案--------------------js:
if (parent==nul) window.location=par.html
------解决方案--------------------在chi.asp中
javascript:
if(winodw.parent == window)
{
window.location.href= "par.html "
}