# JS (or PHP?) Request Please!

**URL:** <https://forum.kirupa.com/t/js-or-php-request-please/223933>\
**Category:** web dev\
**Created:** [April 26, 2007, 10:27pm UTC](https://forum.kirupa.com/t/js-or-php-request-please/223933 "2007-04-26T22:27:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vxdom](https://avatars.discourse-cdn.com/v4/letter/v/6a8cbe/32.png) [@vxdom](https://forum.kirupa.com/u/vxdom)\
**Post date:** [April 26, 2007, 10:27pm UTC](https://forum.kirupa.com/t/js-or-php-request-please/223933/1 "2007-04-26T22:27:27Z")

</div>

Just wondering if anyone can help me find or write a script that I need. I have a script that pops up a window when you click on an image, but I need it to load up a different window if the clients browser is IE6.

Currently I have this:

```auto
<body bgcolor="#AC6527">
<script type="text/javascript">

function openpopup(popurl){
var winpops=window.open(popurl,"","width=675px,height=470px,scrollbars")
}
</script>

<div style='position:absolute;bottom:0px;right:0px; border:0px;'><a href="javascript:openpopup('bugpop.php')"><img border="0px" style="float:right;" src="images/intro.gif"></a></div>
</body>

```

But if it’s IE6 I need it to be the following… (notice scrollbars=no and the slightly different URL)

```auto
<body bgcolor="#AC6527">
<script type="text/javascript">

function openpopup(popurl){
var winpops=window.open(popurl,"","width=675px,height=470px,scrollbars=no")
}
</script>

<div style='position:absolute;bottom:0px;right:0px; border:0px;'><a href="javascript:openpopup('popIE6.php')"><img border="0px" style="float:right;" src="images/intro.gif"></a></div>
</body>

```

If anyone can help me out with this i’d really appreciate it! I’m such a JS noob!
