# Javascript function pb

**URL:** https://forum.kirupa.com/t/javascript-function-pb/134564
**Category:** Uncategorized
**Created:** [January 19, 2005, 3:15pm UTC](https://forum.kirupa.com/t/javascript-function-pb/134564 "2005-01-19T15:15:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Uli](https://avatars.discourse-cdn.com/v4/letter/u/ccd318/32.png) [@Uli](https://forum.kirupa.com/u/Uli)
#### Post date: [January 19, 2005, 3:15pm UTC](https://forum.kirupa.com/t/javascript-function-pb/134564/1 "2005-01-19T15:15:50Z")

</div>

Hello,  
Yes one more \*\*\*\* pop up threat…  
Anyway, here’s my pb: I’m using that function in my html:

```php

<SCRIPT LANGUAGE="JavaScript">

function Launch(page , myheight, mywidth) {
OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=mywidth,height=myheight");
}
</SCRIPT>

```

And that on my flash button:

```php

on (release) {
	getURL("javascript:Launch('somepage.html' , '400' , '300')");
}

```

But it doesn’t seem to care about myheight and mywidth… it open a 100\*100 pop up it seems… Now if i tweak the function to:

```php

function Launch(page) {
OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=400,height=300");
}

```

it works…  
so why can’t i pass thoses variables in my JS function? what am i doing wrong??

TiA 🙂
