mo Posted April 3, 2009 Share Posted April 3, 2009 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> Link to comment https://forums.phpfreaks.com/topic/152413-image-type-button-onclick-not-working-in-firefox/ Share on other sites More sharing options...
mrMarcus Posted April 3, 2009 Share Posted April 3, 2009 that should work no problem in firefox .. it's a standard onClick .. update Firefox perhaps? this is definitely a javascript question, no? not php. Link to comment https://forums.phpfreaks.com/topic/152413-image-type-button-onclick-not-working-in-firefox/#findComment-800434 Share on other sites More sharing options...
mo Posted April 3, 2009 Author Share Posted April 3, 2009 that should work no problem in firefox .. it's a standard onClick .. update Firefox perhaps? this is definitely a javascript question, no? not php. Your correct, perhaps it is a JS question. I will search the web. Thanks. Link to comment https://forums.phpfreaks.com/topic/152413-image-type-button-onclick-not-working-in-firefox/#findComment-800441 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.