E
Edwin Hannan
Hi all
I am trying to control a popup window using mouseover and mouseout.
I can pop a window when a mouseover event occurs (calls to my javascript
edpop() function)
but I cant get to close the popup window on the mouseout event
i thought i was storing the handle of the new popup window in the var win?
here is my javascript code
*************************************
javaScript in head
var win; //global var
function removewindow()
{
win.close(); // and why wont the popup close on mouseout????
}
function edpopup()
{
win = window.open("./answers/ccjs.htm","","height=200,width=450"); //
}
End JavaScript
*****************************************
<P onmouseout="removewindow()";
onmouseover="edpopup();">
Move the mouse pointer over this text, and then move it elsewhere
in the document. Move the mouse pointer over this text, and then
move it elsewhere in the document.
edpopup works
remove window does not work?
Why? can anyone help with this
cheers
Ed
I am trying to control a popup window using mouseover and mouseout.
I can pop a window when a mouseover event occurs (calls to my javascript
edpop() function)
but I cant get to close the popup window on the mouseout event
i thought i was storing the handle of the new popup window in the var win?
here is my javascript code
*************************************
javaScript in head
var win; //global var
function removewindow()
{
win.close(); // and why wont the popup close on mouseout????
}
function edpopup()
{
win = window.open("./answers/ccjs.htm","","height=200,width=450"); //
}
End JavaScript
*****************************************
<P onmouseout="removewindow()";
onmouseover="edpopup();">
Move the mouse pointer over this text, and then move it elsewhere
in the document. Move the mouse pointer over this text, and then
move it elsewhere in the document.
edpopup works
remove window does not work?
Why? can anyone help with this
cheers
Ed