Home >Web Front-end >JS Tutorial >Regarding the issue of automatic page refresh after clicking the button

Regarding the issue of automatic page refresh after clicking the button

一个新手
一个新手Original
2017-10-19 10:25:344701browse

button: will not refresh automatically

image button and submit will refresh automatically

If you want to use an image button, but don’t want the page to refresh automatically after clicking the button; then use button and set it The background image of the button

<input type="button" style="background:url();"/>

If you want to use a picture button and allow automatic page refresh, you can use

<input type="image" src="" />

The above is the detailed content of Regarding the issue of automatic page refresh after clicking the button. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn