Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing variables from javascript to another form
Message
De
19/03/2002 11:57:52
 
 
À
19/03/2002 09:30:54
Information générale
Forum:
Internet
Catégorie:
Javascript
Divers
Thread ID:
00634431
Message ID:
00634517
Vues:
18
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform