如何在按钮单击时阻止我的页面重新加载或刷新提交HTML表单(textarea)?

时间:2017-04-07 21:27:23

标签: html5

以下是表格:

<svg class="circularReferenceSVG" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
            <marker xmlns="http://www.w3.org/2000/svg" id="triangle" viewBox="0 0 10 10" refX="0" refY="5" markerUnits="strokeWidth" markerWidth="4" markerHeight="4" orient="auto">
                <path d="M 0 0 L 10 5 L 0 10 z" fill="#000000"></path>
            </marker>
        </svg>

1 个答案:

答案 0 :(得分:0)

<button name="sendmsg" class="background-none text-white background-primary-hightlight text-s-size-12">Send</button>

<input type="button" value="Send" name="sendmsg" class="background-none text-white background-primary-hightlight text-s-size-12" />