javascript - Delete confirmation returns Undefined in chrome -
i facing issue in chrome only.
when want delete entity in web application before ask confirmation delete.
<div onclick="return confirm('are sure want delete package?');"> <a href="appsubscriptionpackagedelete.htm?appguid=${appguid}&packageguid=${packageguid}" onclick="return confirm()" class="iconbutton trashicon floatright"></a> </div>
when click delete link gives proper message in other browsers returns undefined in chrome. if click cancel shows proper alert string passed in confirm function
return false works on link
<div > <a onclick="return confirm('are sure want delete package?');" href="appsubscriptionpackagedelete.htm?appguid=${appguid}&packageguid=${packageguid}" class="iconbutton trashicon floatright"></a> </div>
Comments
Post a Comment