You can use a twist of the following:
Java:
var myWindow;
function openWin() {
myWindow = window.open('MyPage.aspx?WID=01', 'newWin1', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,minimize=no,copyhistory=no,width=300,height=320,left=50,top=160')
}
function closeWin() {
myWindow.close();
}
attach attribute to button...
....("OnClick","OpenWin();"
or use on mouse-over.., etc:
OnMouseOver='openWin()' onMouseOut='closeWin()'
..and so on...
If you open the window on Click then you'll want to run the "close" function of the opened URL pop up. Something like:
<script language="Javascript">
function ReturnDate()
{
window.opener.document.forms["<%= strFormName %>"].elements["<%= strCtrlName %>"].value = "<%= strSelectedDate %>";
window.close();
}
function Close()
{
window.close();
}
</script>
...where here the code is on the opened pop-up which is bringing back a querystring with it...
hopes this helps a little...