如何实现父子窗口的效果 知道的请进 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赋给它就行了. 动态追加行里的小画面打开键的取值问题 【求助】一个图片切换功能的代码怎么实现有效果切换呢? 求助 a hover当鼠标放上去时能延时2两秒反应! 验证图片格式、大小的问题 动态加载JS出现奇怪的问题 小问题document.frames(..)w3c标准里应该怎么写 框架使用的一个问题?急! jquery的聚焦问题 jquery easyui中的总页数怎么获取? 爱奇艺视频亮度发何调节? 各位达人给我看下这个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赋给它就行了.