tags:

views:

53

answers:

1

Hello people,

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!

+1  A: 

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().

Devon_C_Miller