How to create a HTML Cancel button that redirects to a URL

前端 未结 11 1141
Happy的楠姐
Happy的楠姐 2020-12-13 13:00

I am playing with the Buttons in the w3schools Tryit editor, and I am trying to figure out how to make my browser redirect to an URL when I click on the \"Cancel\" button.

11条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-13 13:38

    There is no button type="cancel" in html. You can try like this

    Cancel
    

    You can make it look like a button by using CSS style properties.

提交回复
热议问题