Hai Syam,
I think I may be of help to you in this regard.
Declare a global variable for holding the window object of the popup window. In the hyperlink tag, give javascript:functionName() for href attribute. That is it. The skeleton of the code may look like this.
var myWin;
<a href='javascript:myOpen()'>open popup</a>
<a href='javascript:myclose()'>close popup</a>
function myOpen(){
myWin= window.open(...);
}
function myclose(){
mywin.close();
}
Pretty nice ! Isn't it.
Well, do let me know, if you need any further clarifications.
S.Mohamed Yousuff
Originally posted by Syam Veerakumar:
Thanks for the reply but I have to use the <A> tag here, so cud u pls give me any other solution.
Syam.