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

<html>

<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- Original:  Eric King (eric_andrew_king@hotmail.com) -->
<!-- Web Site:  [url]http://redrival.com/eak/[/url] -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! [url]http://javascript.internet.com[/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 = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
//  End -->
</script>
</HEAD>

<body>
<a href="http://mydomain.com/tour/master.htm" onclick="NewWindow(this.href,'name','550','400','yes');return false;">Site Name Flash Tour<br>
<IMG SRC="http://mydomain.com/tour/getFlash.gif" border="0"></a>

</body>

</html>

Can someone please explain?

Thank you.

In your above code snippet, you're building a string called "winprops" that is used in the window.open() 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:

NewWindow("www.tgreer.com","500","400","no")

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".

This article has been dead for over six months. Start a new discussion instead.