PDA

View Full Version : New Window without scrollbars and size 50X50



stdjmax
09-14-2005, 01:51 AM
I would a new window IE without scrollbars and size 50X50

from here i find

<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=50,height=50,scrollbars=no);
return false;
}
//-->
</SCRIPT>

and you call by
<A HREF="activation.htm" onClick="return popup(this, 'notes')">
Activation</font></A>

But it show me scrollbars in a window of 50x50.
How i get rid of them?

Wizard13335
09-15-2005, 06:43 AM
its not "scrollbars=no" its "scrollbars=0". hope that helps!

jscheuer1
09-15-2005, 09:32 AM
its not "scrollbars=no" its "scrollbars=0". hope that helps!Actually, either is OK. In fact, simply not listing scrollbars at all, is supposed to make it so that there are none. However:

window.open(href, windowname, 'width=50,height=50,scrollbars=no);should be:

window.open(href, windowname, 'width=50,height=50,scrollbars=no');Anyways, I've had some problems in FF with scrollbars=no/scrollbars=0 not 'getting it'. I've found that, if in the body tag of the page that you are loading into the new window, if you have like:

<body style="overflow:hidden;">There will be no scrollbars, period.