JavaScript popup help

admin

Administrator
Staff member
Hey everyone.<br />
<br />
I've got my code for creating a JavaScript popup, but there are no scrollbars showing up when there is too much text for the window...<br />
<br />
<br />
<script><br />
function me(){<br />
var popurl="me.html"<br />
winpops=window.open(popurl,"","width=392,height=302,")<br />
</script><br />
<br />
<br />
What do I add to make the scrollbars auto??<br />
<br />
Thanks.<!--content--><script><br />
function me(){<br />
var popurl="me.html"<br />
winpops=window.open(popurl,"","width=392,height=302,scrollbars=yes")<br />
</script><!--content-->you might want to look at your code again, as it wont work for me. :)<!--content-->what won't work?<!--content-->To make scott's code execute, you need to call the me function, e.g.<br />
<br />
<br />
<Javascript><br />
function go(popurl){<br />
winpops=window.open(popurl,"","width=392,height=302,scrollbars=yes");<br />
}<br />
</script><br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"javascript: go('me.html'); return false">Open me</a><br />
<br />
<br />
Scott just forgot to end the me(){ function with the trailing } .. no biggie...<!--content-->ahh, I just copied it from the first post. :)<!--content-->It is one of those things you can look at for hours without noticing.. !! I only found out because I copied it into notepad and ran the code.... I never saw it the first few times !!!!<br />
<br />
;)<!--content-->hehe yeah, I only had posted the first part of the code because I figured I only had to change something in the first part. hehe<br />
<br />
Thank you for your help. :)<!--content-->
 
Back
Top