View Full Version : javascript help
Well i created popUp code from javascript, and i don't know how to make scroll bar in it, or re-size it. any help?
function pop_up_side(x, y, w, h, website)
{
var pop = ",left=" + x + ",top=" + y + ",width=" + w + ",height=" + h;
popup = window.open (website, "MenuPopup", pop);
}
thanks in advance guys.
BerksWebGuy
9-1-02, 12:10 PM
You can try something like this:
<SCRIPT language="javascript">
<!-- hide javascript
var winOpts = 'RESIZEABLE=yes,STATUS=NO,TOOLBAR=NO,LOCATION=NO,D IRECTORIES=NO,COPYHISTORY=NO,MENU=NO,SCROLLBARS=YE S,TOP=20,LEFT=20,WIDTH=375,HEIGHT=390';
function popUp(pPage) {
popUpWin = window.open(pPage,'popWin',winOpts);
}
// done hiding -->
And then:
<a href="javascript:popUp('/popup.html')"></a>
Good Luck :D
thanks, but I tried it on my script, and it does not work! I actually also tried setting "1" instead of yes, but it doesn't work either!
I declared the new variable, and added it to the function too.
BerksWebGuy
9-2-02, 02:27 PM
Check out this page...
http://javascript.internet.com/generators/popup-window.html
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.