Using JavaScript to pass values between pages

Source: Internet
Author: User

$ Is a type of method defined by prototype.

$ ("ID") is the element with the page ID as "ID ".
$ F ("ID") returns the value of the element whose page ID is "ID". This is read-only and cannot be written.

1. var STR = Window. showmodaldialog (URL, window, "dialogheight:" + H + "; dialogwidth:" + W + ";

Dialogtop: 200px; dialogleft: 250px; edge: raised; center: yes;

Help: Yes; resizable: Yes; Status: No; scroll: No ");

If (STR! = 'No' & Str! = NULL)

{
VaR STRs = Str. Split ("+ ");

Document. All. <% = txtcustomersno. clientid %>. value = STRs [0];
Document. All. <% = txtcustomersname. clientid %>. value = STRs [1];

$ ("# <% = Txtcustomerslevel. clientid %>"). Val (STRs [2]);


Document. All. <% = txtcustomersaddress. clientid %>. value = STRs [3];
}

2. Window. returnvalue = var1;

Window. Close ();

 

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.