Voila le code :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
<html>
<head>
<script language="javascript">
function choisir(image){ 
	window.opener.document.forms[1].form_image.value = image;
	self.close(); 
	}
</script>
</head>
<body>
<a href="javascript:choisir('linux.gif')"><img src="../img/ihm/linux.gif" title="linux" alt="linux" style="border:0px;" /></a>
</body>
</html>
Et voila l'erreur :

Error: uncaught exception: [Exception... "Security error" code: "1000" nsresult: "0x805303e8 (NS_ERROR_DOM_SECURITY_ERR)" location: "http://www.informastuces.com/v2/includes/choix_image_news.html Line: 5"]
Si vous avez une idée j'suis preneur. Ca doit pas etre bien compliqué mais j'suis bidon en JS