# JavaScript Pop-Up - Custom Width/Height

**URL:** https://forum.kirupa.com/t/javascript-pop-up-custom-width-height/199039
**Category:** open source
**Created:** [August 30, 2006, 6:44pm UTC](https://forum.kirupa.com/t/javascript-pop-up-custom-width-height/199039 "2006-08-30T18:44:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)
#### Post date: [August 30, 2006, 6:44pm UTC](https://forum.kirupa.com/t/javascript-pop-up-custom-width-height/199039/1 "2006-08-30T18:44:23Z")

</div>

I didn’t see any on this particular topic, so I figure I’ll post the obligatory javascript pop-up window script that is used on [kirupa.com](http://kirupa.com):

```auto
<SCRIPT LANGUAGE="JavaScript"> 
<!-- Begin 
function LaunchV3(page, width, height) { 
OpenWin = this.open(page, "interestingName", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,width="+width+", height=" + height+""); 
} 
// End --> 
</SCRIPT>

```

Paste the above somewhere in your document, and to launch a page, use the following in a hyperlink:

```auto
javascript:LaunchV3('http://www.yahoo.com',700,670)

```

Notice that you pass the width and height of your new window as part of the arguments for the LaunchV3 script.

:sailor:
