Click to See Complete Forum and Search --> : simple popup window query


damon2003
11-17-2003, 04:17 PM
Hi,
I have a link that usines some popup window code:

function open_popup(page) {
window.open(page);
return false;

<a href="javascript:open_popup('rates.htm')">RATES</a>

the popup works fine, but the main page also changes and displays 'false' why is this,
thanks

Charles
11-17-2003, 04:53 PM
That's what browsers are supposed to do with that piece of script. Use instead...

<a href="rates.htm" onclick="window.open(this.href); return false" style="text-transform:uppercase">Rates</a>