je pense que le problème vient du src de l'image...
essaie ceci :
<img src="javascript:affiche();" height="300" width="300">
ou plus vraissemblablement :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| <html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="javascript">
function affiche(){
var a=window.opener.document.image.img.value;
return a;
}
</script>
</head>
<body onload="document.getElementById('my_img').src = afficher()">
<img src="" height="300" width="300" id="my_img">
</body>
</html> |
Partager