开发者

Javascript popupWindow and fill some web form field

I'm trying to write a script to pop开发者_StackOverflow社区up a web form and then auto fill the form field with some data.

I'm using jQuery popupWindow to popup the page but I don't have any idea how to fill that form field.

Here a example http://jsfiddle.net/moreno/EHhpk/1/

note.: The form field are in an external server and I don't have access to their code.

Thanks for your help.


I'm not entirely certain how you would handle this using that jQuery library, but if you use the old-school...

window.open(...)

...method, it will return a reference to window that has a document property. Assuming the new window is within the same domain, you should be able to edit the form elements that way.

There's enough example code here to get started:

http://www.javascript-coder.com/window-popup/javascript-window-open.phtml

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜