I'm trying to show an iframe onmouseover event and close that iframe onmouseout. Onmouseover is working but not the onmouseout event. Here's what I have tried....
<apex:outputLink value="OrderTrackingClass?id={!o.id}"
onmouseover="var awin=window.open('OrderLines?id={!o.id}','Order Lines','height=300, width=1000, left=400, scrollbars=yes');"
onmouseout="awin.close();">
{!o.Orders__c}
</apex:outputLink>
What am I missing?
onmouseover
event creates theawin
variable which may not be visible by theonmouseout
event. Try doing something likeonmouseout="alert(awin);"
to see whatawin
is in theonmouseout
event.awin
variable displayed in the alert box which would highlight the issue that it is an unknown variable