Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

onclick and javascript


Salvo

Recommended Posts

Hi all

 

I am tring to open to a new window using the onclick but gives me errors.

can you pls check it for me?

 

Thanks

 

 

Salvo

 

on top page

<script language="javascript"><!--

function popupWindow(url) {

window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res

izable=no,copyhistory=no,width=600,height=400,screenX=150,screenY=150,top=150,lef

t=150')

}

//--></script>

 

 

echo '<tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="java script:popupWindow(\'' . tep_href_link(FILENAME_ACCOUNTS, tep_get_all_get_params(array('cID')) . 'cID=' . $customers['customers_id']) . '\'">' . "\n";

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...