Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a way to pass values from

Status
Not open for further replies.

CoolClark

MIS
Mar 9, 2001
352
0
0
US
Is there a way to pass values from one instance of a browser to another using DHTML? If I have a text box in Browser A I want to fill it from a text box in Browser B when a button in Browser B is pushed.

Browser A

<HTML>
<HEAD>
</HEAD>
<BODY>
<form id=BrowserA>
<INPUT type=&quot;text&quot; id=textA name=textA>
</form>
</BODY>
</HTML>

Browser B

<HTML>
<HEAD>
</HEAD>
<BODY>
<form id=BrowserB>
<INPUT type=&quot;text&quot; id=textB name=textB>
</form>
<INPUT type=&quot;button&quot; value=&quot;Button&quot; id=button1 name=button1>
</BODY>
</HTML>

<SCRIPT LANGUAGE=vbscript>
<!--
sub button1_onclick()
'send browserB.textB to browserA.textA
end sub
//-->
</SCRIPT>
 
Hi,

If one of the windows is a child of the other... it is possible, depeding on what you want to do!! I advise you to use JavaScript to do that!!

Regards,
Luís Silva
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top