Obtain the value of the pop-up subwindow text box in the parent window

Source: Internet
Author: User

<Script defer>
Function browser. onclick (){
Var nW = window. open ("", "", "width = 170, height = 200 ");
NW. moveTo (300,100 );
N1_doc ument. write ("<script defer> \ r" +
"Var m = true; \ r" +
"Function insert. onclick () {\ r" +
"If (m) {\ r" +
"Opener. atext. value = btext. value; \ rm = false;" +
"} Else {\ r" +
"Opener. atext. value + = '\-' + btext. value; \ r" +
"} \ R" +
"<\/Script> \ r" +
"<Input name = btext value = 111111 size = 10 style = 'background: # ffffff; BORDER-BOTTOM: # 0a3family 1px solid; BORDER-LEFT: # 0a3family 1px solid; BORDER-RIGHT: # 0a3family 1px solid; BORDER-TOP: # 0a3family 1px solid '> \ r "+
"<Input type = button value = select name = insert style = 'background-color: # EBF5FC; border: 1px solid # 0099CC '> ");
}
</Script>
<Textarea name = "atext" cols = "60" rows = "4"> </textarea>
<Input type = button value = select parameter name = browser style = "background-color: # EBF5FC; border: 1px solid # 0099CC">

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.