I have a formular, where you can edit a customers data. Below this there are 2 Buttons "Save" and "Cancel". Saving works fine, but if I click the cancel button, it should close the Formular and go back to the last page, which is the customer overview. How do I realize this?
2条回答 默认 最新
douxiajia6104 2015-08-10 11:56关注You don't need PHP for that, just a bit of Javascript. Try this:
<input action="action" type="button" value="Cancel" onclick="history.back();" />本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报