ouai c bon sa marche impeccable !!!!!!!
merci
voila mon essai que j'ai realisé :
<html>
<script language="JavaScript">
var fenetre
function AfficheFenetre(observation) {
fenetre=window.open('','Note','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,' + 'width=400' + ',height=100');
contenu="<html><script language='JavaScript'>function renvoi(observationbis) { window.opener.formulaire.tb.value=observationbis; window.opener.formulaire.tb.disable=true; window.opener.focus(); } <\\/script><body><form name='formulaire2'><textarea name='ta'";
contenu+="cols='30' rows='5'>"+document.formulaire.tb.value+"</textarea><input type='button' OnClick='renvoi(document.formulaire2.ta.value)' value='ok'></form></body></html>";
fenetre.document.write(contenu);
fenetre.focus();
fenetre.document.close();
}
function alerter(tex) {
fenetre=window.open('','Note','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,' + 'width=400' + ',height=100');
contenu="<html><body><textarea name='ta' cols='100' rows='50'>"+document.formulaire.tb.value+"</textarea></body></html>";
fenetre.document.write(contenu);
fenetre.focus();
fenetre.document.close();
}
</script>
<body>
<form name="formulaire">
<input type="text" name="tb" size="20" maxlength="65536" disabled value="ouistiti">
<input type="button" OnClick="AfficheFenetre(document.formulaire.tb.value)" value="ok">
<input type='button' OnClick='alerter(document.formulaire.tb.value)' value="alerter">
</form>
</body>
</html>
NIARF