adrienne
07-05-2005, 03:56 PM
I am having trouble with my popups. They are to show definitions on a web-based help structure (a self-contained web site). In IE they work, but not in Firefox (or at least randomly, which is strange). This is the code at the top of each web page:
<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=400,height=250,scrollbars=no');
return false;
}
//-->
</SCRIPT>
and I have this code for each definition link:
<A HREF="glossary.htm#definition_anchor"
onClick="return popup(this, 'notes')">name_of_link</a>
Firefox seems to ignore the anchor (bookmark) yet correctly interprets opening the popup containing the glossary document. Is there something unsupported that I am using here? I would like it to be multi-browser compatible.
Thanks for your suggestions.
<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=400,height=250,scrollbars=no');
return false;
}
//-->
</SCRIPT>
and I have this code for each definition link:
<A HREF="glossary.htm#definition_anchor"
onClick="return popup(this, 'notes')">name_of_link</a>
Firefox seems to ignore the anchor (bookmark) yet correctly interprets opening the popup containing the glossary document. Is there something unsupported that I am using here? I would like it to be multi-browser compatible.
Thanks for your suggestions.