faqts : Computers : Programming : Languages : JavaScript : Windows

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

14 of 62 people (23%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

How to pass variables between two windows when a submit button can do two differant things.

May 17th, 2000 02:53
Hiroto Sekine, jacque leavitt, https://buttons.ihug.co.nz/all/mu2iafdemo.htm


with IE4 and above: Simply visit active sample page. Actually, it 
doesn't use "Submit" button, however, it could be apply to submit 
button using the same way as it is.
Once you open the page completely, then click "Change Agent ID" button,
you will meet "Test ID input" dialog in another window. Key in some 
text string in the text-box, then click "Apply" button, the text-string 
will transfer to the main window via global variable. The active entire 
source code can be browsed there as well.