document.write在表格中用输入信息,为何老是打开一个新页面??!! 换个提法就是在javascript函数中怎样使用html语言? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 没明白你的意思document.write("<iframe height='340' width='546' src='select.htm' scrolling='no' frameborder='0'></iframe>");这段代码是正确的 没错呀,你把frameborder去掉就看见效果了<html><head><title>Untitled Document</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><script language="javascript">function goopen(){document.write("<iframe height='340' width='546' src='select.htm' scrolling='no' ></iframe>");}</script></head><body onload="javascript:goopen()"></body></html> 我希望<iframe>打开得页面是在一个单元格里的,而不是整个文档就打开一个'select.htm' 页面。<html><head><title>Untitled Document</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><body><table width="75%" border="1"> <tr> <td align="center" bgcolor="#B9BDC6"><font color="#000000">测试表格</font></td> </tr> <tr> <td height="50">我希望<iframe>在下面的单元格中打开一个新页面!</td> </tr> <tr> <td height="219"><script language="javascript">function goopen(){document.write("<iframe height='340' width='546' src='select.htm' scrolling='no' ></iframe>");}</script></td> </tr></table></body></html> 不能用write参考:<script>function goopen(){document.all.f.innerHTML="<iframe height='340' width='546' src='select.htm' scrolling='no' frameborder='0'></iframe>";}</script><table ><tr><td id=f>sdfsdf</td></tr></table><input type=button value="Go" onclick="goopen()"> 多谢 baiyunfei,试试再来结贴! 怎样验证身份证的合法性 var s="form,forml,post"什么意思 动态<select>内容的生成 JS内部调用外部变量 undefined JS 读取 rar 中文件 取不到js对象里面的值, 请大家帮忙。 3个= 号是什么意思? JScript 和 javascript 的区别?以及出品的公司是? 点一下按钮,增加一个文本框,如何实现?求高手看看。 高手,帮我解决一下! javascript修改的网页内容,当你进入下一页后,再回退后怎样保留修改内容? 在打开一个静态页面的时候,怎么样弹出另外一个尺寸没限制的页面,要求12小时内只弹出一次?
document.write("<iframe height='340' width='546' src='select.htm' scrolling='no' frameborder='0'></iframe>");
这段代码是正确的
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript">
function goopen()
{
document.write("<iframe height='340' width='546' src='select.htm' scrolling='no' ></iframe>");
}
</script>
</head>
<body onload="javascript:goopen()">
</body>
</html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<body>
<table width="75%" border="1">
<tr>
<td align="center" bgcolor="#B9BDC6"><font color="#000000">测试表格</font></td>
</tr>
<tr>
<td height="50">我希望<iframe>在下面的单元格中打开一个新页面!</td>
</tr>
<tr>
<td height="219"><script language="javascript">
function goopen()
{
document.write("<iframe height='340' width='546' src='select.htm' scrolling='no' ></iframe>");
}
</script></td>
</tr>
</table>
</body>
</html>
<script>
function goopen()
{document.all.f.innerHTML="<iframe height='340' width='546' src='select.htm' scrolling='no' frameborder='0'></iframe>";}
</script>
<table ><tr><td id=f>sdfsdf</td></tr></table>
<input type=button value="Go" onclick="goopen()">