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:
<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)
<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!