<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>JAVA</title>
</head>
<body>
<script language="javascript">
function Check()
{
var display1 = document.getElementByID("display1");
display1.style.display="";
display1.reload(true);
}
</script>
<table width="600" border="0" cellspacing="2" cellpadding="0">
<td><input type="button" value="你好JAVA!" onclick="Javascript:Check()"></td>
<iframe id="display1" style="display:none">
<p>JAVA来了</p>
</iframe>
</table>
</body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>JAVA</title>
</head>
<body>
<script language="javascript">
function Check()
{
var display1 = document.getElementByID("display1");
display1.style.display="";
display1.reload(true);
}
</script>
<table width="600" border="0" cellspacing="2" cellpadding="0">
<td><input type="button" value="你好JAVA!" onclick="Javascript:Check()"></td>
<iframe id="display1" style="display:none">
<p>JAVA来了</p>
</iframe>
</table>
</body>
</html>
解决方案 »
- 谁来帮帮忙???JS,window.open,window.onunload,about:blank
- ExtJs Grid导出到Excel,只导出一页的问题
- js 只取两字符串之间的值
- 你说很简单, 我说很难?
- 关于history.back()的一些问题.....急呀
- windows.open() 和 window.showModalDialog ()区别是什么
- 字符串匹配-正值表达式问题
- javascript 如何与 asp.net(c#)交互?
- javascript中有没有类似exit这样中断程序的方法?
- 关于事件的问题,已经要疯了
- 学四年级的数学题目,请求算法!!
- 怎么才能得到option.label的值的问题!
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>JAVA</title>
</head>
<body>
<script language="javascript">
function Check()
{
var display1 = document.getElementById("display1");
display1.style.display="";
display1.reload(true);
}
</script>
<table width="600" border="0" cellspacing="2" cellpadding="0">
<td><input type="button" value="你好JAVA!" onclick="Javascript:Check()"></td>
<iframe id="display1" style="display:none">
<p>JAVA来了</p>
</iframe>
</table>
</body>
</html>
getElementById注意大小写
function Check() {
var display1 = document.getElementById("display1"); //getElementById() 大小写敏感
display1.style.display = "";
display1.contentWindow.document.location.reload(true); //这一句要这么写
}
</script>