Click to See Complete Forum and Search --> : Image map and openWindow Round II


am89
07-14-2003, 02:01 PM
Hi guys:
Last week some of you guys, Khalid Ali and Joda, more specifically, helped me with a pop up function.

<script type="text/javascript">
function OpenWin(obj){
var newWin = window.open(this.href,'newWin','width=350,height=360,scrollbars=no,location=no');
return false;
}
</script>


<area shape="rect" alt="about" coords="184,31,255,56" href="order.html" onclick="return OpenWin(this)">


The file that should open in that pop up is called order.html

I created and external .js file, but for some reason, the page (order.html) doesn't display....

What could it be?
am89

am89
07-14-2003, 02:04 PM
Here is the externalk.js i made:

function OpenWin(obj){
var newWin = window.open(this.href,'newWin','width=350,height=360,scrollbars=no,location=no');
return false;
}

function changePage(newLoc)
{
nextPage = newLoc.options[newLoc.selectedIndex].value

if (nextPage != "")
{
document.location.href = nextPage
}
}


Thanks,
am89