1
2
3
4
5
6
7
8
9
10
11
12
13
14
html output:


<p style="text-align: center;"><a id="closeWindow" style="border:none;" href="activation-email-sent/?flush=1#"><img class="center" src="assets/images/close-window.png" alt="Close Window" title="Click here to close" width="111" height="34"/></a></p>


javascript (ignore my custom jq replacement of $)


jq("a#closeWindow img").click(function() {
//              alert("Close please!");
window.opener='x';
window.close();
});