你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/1884-gm-config/discussions/7953,源站連結 點此以跳轉

GM_config

GreaseMonkey Script Configurator

< 脚本 GM_config 的反馈

提问 / 留言

§
发布于:2015-08-02

How do I access current value of the field?

Not one saved, but one entered by user without hitting save.
Use case: On my configuration panel I have an input to enter URL of audio file, and a button that should play it. How do I access actual value of the input? Since you create iframe with about:blank URL, I can't access it's content directly.

§
发布于:2015-09-02

Okay, found a workaround: in an event handler, you can use this.ownerDocument.documentElement to get the root element of the DOM tree, and work from there.

发布留言

登录以发布留言。