参考msn的帮助系统,我觉得很爽。
解决方案 »
- 通过window.open打开的窗口想得到父窗口的URL
- javascript代码出错,麻烦给予解决!在线等..
- 在Javascript中对样式的修改何时生效?
- 我用onMouseOver="this.style.backgroundColor='#1b1e89'" 实现鼠标移动改变背景颜色,为什么...
- 解决就给分 就这些了 关于窗口关闭事件
- javascript求助
- openModelwindow打开新窗口如何得到他的父路径
- 如何使一个open的窗口焦点始终在最上面且我想实现关闭父窗口的同时自动关闭子窗口
- 如何通过按钮或者图片传送多个checkbox的值到java代码
- 怎样将javascript中定义变量的值传到下一个页面???
- select里的内容的显示问题
- 怎么去取得变量的值啊?
=>
<!--
----改了一下,还是提示有错误
var windowHTML="<html><head><title>Second Window</title></head>"
+"<body> Another window!"
+".......";
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<script type="text/javascript">
<!--
function createWindow()
{
secondwindow = window.open('','example','height=300,width=200,scrollbars=yes');
if (secondwindow != null)
{
var windowHTML="<html><head><title>Second Window</title></head><body> Another window!<form action='' method='get'><input type='button' value='Set main red' onclick='window.opener.document.bgColor=\"red\";' /><input type='button' value='CLOSE' onclick='self.close();'/></form></body></html>"; secondwindow.document.write(windowHTML);
secondwindow.document.close();
secondwindow.focus();
}
}
//-->
</script></head><body>
<form action="#" method="get">
<input type="button" value=" windows" onclick="createWindow();"/>
<input type="button" value="set red" onclick="if(window.secondwindow){secondwindow.document.bgColor='red';secondwindow.focus();}"/></form>
</body>
</html>
leo963258(读书之人) --------Ok
但为什么其中不能有回车呢呢?