Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing variables from javascript to another form
Message
From
19/03/2002 11:57:52
 
 
To
19/03/2002 09:30:54
General information
Forum:
Internet
Category:
Javascript
Miscellaneous
Thread ID:
00634431
Message ID:
00634517
Views:
20
>Hello, I'm trying to send some variables to another window. how i do this?
>this is my code, i'm trying to send an information from a database to that window.
>
><script language=javascript>
>		history.go (-2)
>		theURL="Llamadas_ok.htm";
>		winName="Información";
>		_W=window.open(theURL,winName,"resizable=no,width=299,height=180");
>		_W.document.title ="Información";
>		_W.focus();
>		_W.moveTo(250,200);
></script>
>
>
>Thanks

Another technique, only if you use the above approach of window.open(...) is to use the opener property of the new window, which refers back to the original window.


Before the window.open(...), create new properties for the current window
window.var1="xxx"
window.var2="yyy"
window.var3="zzz"
In Llamadas_ok.htm the new properties can be accessed with
window.opener.var1
window.opener.var2
window.opener.var3
Note, this cannot be used if you use an A tag
<a href="Llamadas_ok.htm">
Len Speed
Previous
Reply
Map
View

Click here to load this message in the networking platform