一个忽视的IFRAME的问题,相信很多人某时都会碰到
pqsit 2005-09-25 08:14:34 在x.asp放入一个IFRAME,内容是y.asp,点击y.asp中的按钮,跳不出正确的页面,请问应该怎么处理?
(不用location.href哦)
页面1:x.asp
<IFRAME NAME="Frm" Width="728" Height="500" id="ifd" SRC="y.asp" scrolling=auto></IFRAME>
页面2:y.asp
<html>
<body>
<form name="myForm" method=post action="do.asp">
<script language="vbscript">
<!--
sub g()
document.myForm.action="http://www.google.com"
document.myForm.target="_blank"
document.myForm.submit
End sub
-->
</script>
<input type=button value="xx" onclick="g()" >
</form>
</body>
</html>