how to call javascript when load jsp page?
I have a button which should be disabled when the JSP pag开发者_如何学运维e loads.
How do I achieve this?
If there is no any specific conditions for disabling button, you can use HTML attribute disabled. Like this, instead of dynamically changing it on load.
<input type="button" disabled="disabled" value="My button" name="btn1" />
精彩评论