Got everything set except dont' know where to put the no scrollbar (scrollbars=0 or scrollbars=no) command.



<!-- Original:  Eric King ( -->
<!-- Web Site:  [url][/url] -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! [url][/url] -->

<!-- Begin
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win =, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
//  End -->

<a href="" onclick="NewWindow(this.href,'name','550','400','yes');return false;">Site Name Flash Tour<br>
<IMG SRC="" border="0"></a>



Can someone please explain?

Thank you.

In your above code snippet, you're building a string called "winprops" that is used in the command.

That string is built from hard-coded strings and variables that are passed into the function.

When you call the NewWindow() function, you pass in the values:


would create a new window, 500x400, with no scrollbars, containing my website as content.

If you want it to NOT be resizable, you need to change the winprops string to:

winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'

I would recommend you not do this. When you take away the ability for a user to do something they expect to be able to do (such as resize a window), it creates a "negative user experience".