如何实现父子窗口的效果 知道的请进 window.showModalDialog("页面地址",window.document,"dialogWidth=600px;dialogHeight=500px"); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <!---main-----><html><BODY><form name="form1"><input type="button" value="click me and open a dialog window" onclick="ShowDialog()"/><input type="textbox" name="txt1" width="200"/> </form></BODY></html><script language="JavaScript">function ShowDialog(){document.form1.txt1.value=window.showModalDialog("Dialog.html");}</script><!----Dialog.html-------><html><base target="_self"><BODY><form name="form1"><input type="textbox" name="txt1" width="200"/><input type="button" value="return" onclick="ReturnValue()"/><a href="http://www.google.cn">gooooogle</a></form></BODY></HTML><script>function ReturnValue(){window.returnValue=document.form1.txt1.value;window.close();}</script> GT7466 请问如果打开的子窗口里边是文字链接,能把对应文字的ID传到父窗口里吗? http://topic.csdn.net/u/20080229/09/c973ec0b-b4e4-42be-b34c-70591c1849e4.html window.returnValue 这个是子窗口的返回值,要具体返回什么,对它赋值就可以了.把文字的ID赋给它就行了. jqeuery easyui datagrid 怎样实行修改批量保存 添加到收藏 下面这段jquery 代码 有什么问题呢 javax.servlet.ServletException: java.sql.SQLException: Column Index out of range, 2 > 1. 一个鼠标移出事件问题 关于windows.event 高手帮帮忙啊 js中响应ocx控件事件的问题?? 请问怎样启动AutoCAD?并显示程序界面?? javascript函数参数问题--急急急 各位达人给我看下这个JS什么错误。(50分求助),急,在线等 如果获取当前页面的右下角坐标?
<html>
<BODY>
<form name="form1">
<input type="button" value="click me and open a dialog window" onclick="ShowDialog()"/>
<input type="textbox" name="txt1" width="200"/>
</form>
</BODY>
</html>
<script language="JavaScript">
function ShowDialog()
{
document.form1.txt1.value=window.showModalDialog("Dialog.html");
}
</script>
<!----Dialog.html------->
<html>
<base target="_self">
<BODY>
<form name="form1">
<input type="textbox" name="txt1" width="200"/>
<input type="button" value="return" onclick="ReturnValue()"/>
<a href="http://www.google.cn">gooooogle</a>
</form>
</BODY>
</HTML>
<script>
function ReturnValue()
{
window.returnValue=document.form1.txt1.value;
window.close();
}
</script>
请问如果打开的子窗口里边是文字链接,能把对应文字的ID传到父窗口里吗?
把文字的ID赋给它就行了.