如何从子页面到父页面窗口获取值 [英] How to get value from child page to parent Page window

查看:76
本文介绍了如何从子页面到父页面窗口获取值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正在使用window.showModalDialog来打开对话框窗口并使用window.returnValue回溯值。它在IE上工作正常,但我想在safari上工作,但它没有给我window.showModalDialog函数的价值。另外我正在使用window.paren.document.getelementbyid(ID)在子窗口上设置父页面控件这也不是请求帮助我。



I am using window.showModalDialog fro opening dialog window and retrn value using window.returnValue. It work fine on IE,but I want to work on safari but it not giving me value from window.showModalDialog function. Also I am seting parent page control on child windo using window.paren.document.getelementbyid("ID")this is also not woking please help me out.

推荐答案

不要使用window.showModalDialogue,因为它已被弃用。尝试从HTML 5或polyfill对话。您可以尝试使用github代码示例
Do not use window.showModalDialogue as it is deprecated. Try dialog from HTML 5 or polyfill. You could try github for code examples


这篇关于如何从子页面到父页面窗口获取值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆