Jump to content

Image type button onclick not working in Firefox


mo

Recommended Posts

I have a shopping cart that has a delete button next to each cart item for removing the item from the cart. The button is an image and reloads the page while passing parameters when clicked.

 

This works fine in IE but in Firefox I have to click the button twice for the deletion to work. Below is the code for the delete button.

 

<td class=\"dataListItem\">

<input type=\"image\" class=\"image\" src=\"$img_home/icons/delete.gif\" alt=\"Delete\" name=\"btnDelete\" id=\"btnDelete\" value=\"Delete\" onClick=\"window.location.href='".$_SERVER['PHP_SELF']."?action=remove_item&smid=$strID&itemOption=$strOptions'\" onMouseOver=\"this.style.cursor='hand'\">

</td>

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.