HTML beginner |
|
ik heb een pagina waarvan ik ene popup laat opkomen genaamd upload_protocol. In die popup voer ik dit script uit:
<script type="text/javascript">
opener.document.all("upload_url").value = '***.jpg';
opener.document.all("upload_result").innerHTML = 'Huidige afbeelding<br><img class="border" src="***.jpg" name="uploadIMG" id="pic1" width="200" height="200">';
opener.document.all("upload_link").innerHTML = '<input name="button" type="button" onClick=window.open("upload.php?mode=prod&karma=change&url='.$file_name.'","upload_protocol","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=350,height=100,top=100,left=250"); value="Afbeelding instellen">';
opener.refresh(***.jpg);
opener.document.all("upload_message_error").innerHTML = '';
window.close();
</script>';
<script type="text/javascript"> opener.document.all("upload_url").value = '***.jpg'; opener.document.all("upload_result").innerHTML = 'Huidige afbeelding<br><img class="border" src="***.jpg" name="uploadIMG" id="pic1" width="200" height="200">'; opener.document.all("upload_link").innerHTML = '<input name="button" type="button" onClick=window.open("upload.php?mode=prod&karma=change&url='.$file_name.'","upload_protocol","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=350,height=100,top=100,left=250"); value="Afbeelding instellen">'; opener.refresh(***.jpg); opener.document.all("upload_message_error").innerHTML = ''; window.close(); </script>';
Werkt allemaal lkkr enzo maar de window.close(); werkt niet. Hoe maak ik hem werkend?
|