Javascript : afficher un champ
langar
-
langar -
langar -
Bonjour,
Je récupère une variable dans une popup, et je veux l'afficher onLoad dans ma page, avez-vous une solution ?
ici, j'ai mis en dût la variable :
Merci pour votre aide
Je récupère une variable dans une popup, et je veux l'afficher onLoad dans ma page, avez-vous une solution ?
ici, j'ai mis en dût la variable :
<html> <head> <script type="text/javascript" > function onLoad(){ // var maVariable = window.dialogArguments[0]; var maVariable = "ce que je veux afficher"; } </script> </head> <body onload="onLoad();"> Je veux afficher ma variable ici : maVariable </body> </html>
Merci pour votre aide
A voir également:
- Javascript : afficher un champ
- Telecharger javascript - Télécharger - Langages
- A javascript error occurred in the main process - Forum Handicap / Accessibilté
- Erreur #125 javascript - Forum Mozilla Firefox
- Afficher un tableau javascript en html ✓ - Forum Javascript
- Javascript arrondi - Forum Javascript
1 réponse
Je reposte ma question, à l'évènement onload, je récupère une variable que je veux afficher sur ma page, sachant que je code en java et j'ai pas mis ici tout le code, juste ce qui me pose problème :
Comptant sur votre aide.
<html> <head> <script type="text/javascript" > function onLoad(){ var maVariableDate = "variable récupérée"; } </script> </head> <body onload="onLoad();"> La date d'enregistrement : maVariableDate </body> </html>
Comptant sur votre aide.