I can't get this working.
Here's my code.
<script type="text/javascript">
function close() {
window.opener.location.reload();
self.close();
}
</script>
<hr />
<h6>
Thank you for uploading! Click <a style="color:black;" href="#" onclick="close();">here</a> to continue.
</h6>
<br />
<hr />
Also, when I ran Firebug profiler, it didn't show any calls to onclick or close functions. Strange!
Help!
self.close()
is going to call the (presumably undefined) close
method on the A
tag. To close the pop up window, you need to call window.close()
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.