Friday, 15 January 2010

javascript - link opening new window and refreshing current -



javascript - link opening new window and refreshing current -

i using next php line create link in table new window

echo "<a href=\"interfaceinfo.php?fxorder=" . $row['fxorder'] . "&ta5k=" . $ta5k . "&efmgroup=" . urlencode($row['efmgroup']) . "&efmlink=no\" onclick=\"window.open(this.href, 'mywin','left=20,top=20,width=500,height=500,toolbar=1,resizable=1,scrollbars=1')\"><center>1/" . $row['efmgroup'] . "</center></a>";

this working correctly opening new window. however, 1 time new window loaded current window link opens same link. doing wrong this?

on end of link add together ;return false;. prevent action on current window:

<a href=\"interfaceinfo.php?fxorder=" . $row['fxorder'] . "&ta5k=" . $ta5k . "&efmgroup=" . urlencode($row['efmgroup']) . "&efmlink=no\" onclick=\"window.open(this.href, 'mywin','left=20,top=20,width=500,height=500,toolbar=1,resizable=1,scrollbars=1');return false;\">

javascript php html

No comments:

Post a Comment