Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can i add a scroll bar to this code?

Status
Not open for further replies.

help120

Technical User
Apr 15, 2001
198
US
<script language=&quot;JavaScript&quot;>
//<!--

var launchMap = null;

var w = 0;
var h = 0;

function deadCentre(url,w,h) {
if (window.screen) {
var chasm = screen.availWidth;
var mount = screen.availHeight;
launchMap = window.open(url,'posB','width=' + w + ',height=' + h + ',left=' + ((chasm - w - 10) * .5) + ',top=' + ((mount - h - 30) * .5));
}
}
// -->
</script>
 
try this
launchMap = window.open(url,'posB','scrollbars=yes','width=' + w + ',height=' + h + ',left=' + ((chasm - w - 10) * .5) + ',top=' + ((mount - h - 30) * .5));
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top