I am using this little pop-up script which works fine, however, I would like the scrollbars to work automatically.
<a class="orangeblack" a href="#" onClick="window.open('../hp22-questions/whatever.htm','','toolbar=no,width=475,height=290,left=255,top=170,screenX=1,screenY=15,status=no,scrollbars=yes,resize=no');return false">sometext</a>
What I mean is, if the window requires scrollbars, they will automatically be there, if the window does not require them they won't be. This may come up with monitor size and resolution setting differences for different users.
I realize I can write scrollbars=yes
, but that places them on the popup window regardless of any conditions. I have tried scrollbars=auto
but that didn't work at all.