# \[javascript\] IE window.open problem

**URL:** <https://forum.kirupa.com/t/javascript-ie-window-open-problem/129803>\
**Category:** Uncategorized\
**Created:** [November 28, 2004, 9:23pm UTC](https://forum.kirupa.com/t/javascript-ie-window-open-problem/129803 "2004-11-28T21:23:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maniaci](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@Maniaci](https://forum.kirupa.com/u/Maniaci)\
**Post date:** [November 28, 2004, 9:23pm UTC](https://forum.kirupa.com/t/javascript-ie-window-open-problem/129803/1 "2004-11-28T21:23:38Z")

</div>

Alright, IE is really makin’ me mad here. This script works perfectly in Mozilla Firefox, but does not work at all in IE.

Here is the code on the button:

```auto

<input type=button value="Launch Image" onClick="openWin('http://www.mysite.com/img_database/window.php?img=<? echo $_GET['img']?>');">

```

Here is the openWin function:

```auto

function openWin(url){
		window.open(url,'Triplebros - Image Download','toolbar=0,menubar=0,status=0,resize=0,dependent=1,location=0,scrollbars=0,height=650,width=800,left=40,top=40')
	}

```

The openWin function was not always its own function, it also didn’t work when i had the window.open(…) on the button with an onClick.

Any help on this would be fantastic, thanks.
