Rather use <input type="submit">
.
<input type="submit" name="bt" value="gi">
Its name/value pair will be sent to the server side as well:
String bt = request.getParameter("bt"); // gi
No need for JavaScript hacks/workarounds here. It would also break your application in case that the client has JavaScript disabled.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…