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 pour pc - Télécharger - Langages
- A javascript error occurred in the main process français - Forum Windows
- Javascript arrondi ✓ - Forum Windows
- Javascript arrondir à 2 décimales - Forum Webmastering
- Javascript void 0 c'est quoi ✓ - Forum Réseaux sociaux
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.