用javascript控制框架页的src
<HTML>
<HEAD>
<title></title>
<script language="javascript" type="text/javascript">
document.getElementById('frame1').src='main.aspx';
</script>
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<iframe id="frame1" src="defalut.aspx" width="100%" height="100%" scrolling="no" frameborder="0" marginwidth="0" marginheight="0"> </iframe>
</form>
</body>
</HTML>本贴子以“现状”提供且没有任何担保,同时也没有授予任何权利
This posting is provided "AS IS" with no warranties, and confers no rights.
This posting is provided "AS IS" with no warranties, and confers no rights.


浙公网安备 33010602011771号