Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mouseover opens new window, not into frame

Status
Not open for further replies.

altaratz

ISP
Apr 15, 2001
73
US
I'm trying the below to open a javascript in a frame (main.htm), when mouseOver an image, but it keeps opening a new window - any thought? Thanks!

<HTML>
<base target=&quot;main&quot;><HEAD>
<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
<!-- Begin
function fullScreen(theURL) {
open(theURL, '', 'fullscreen=no, scrollbars=yes');
}
// End -->
</script>
</HEAD>
<BODY>
<a href=&quot;javascript:void(0);&quot; onMouseover=&quot;fullScreen(' src=&quot;</body></html>
 
Casey,

That worked - however, I wanted to cause the link on mouseOver, and not to have to click the img src. - can I do this, or shoudl I use the onLoad event handler - sample source code would be great - thanks!

Ethan Altaratz
 
<A HREF=&quot;javascript:void(0);&quot; onMouseOver=&quot;parent.frame_name.location.href=' SRC=&quot;
Look better? This should be what you were talking about.

Change &quot;frame_name&quot; to your frame's name and you're good to go. Catch my drift?

Later. I hope this helped! ;-)
- Casey Winans
 
Casey -

Thanks very much - that was perfect. Sometimes I just go blank - very bad feeling, let me tell you!

Thanks again.


Ethan Altaratz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top