Archive for the ‘DHML’ Category
How to refresh the page using javascript
Posted by: admin in DHML, Javascript on November 11th, 2009
3 Ways to refresh/reload the page using javascript
- <input type=”button” value=”Reload Page” onClick=”window.location.reload()”>
- <input type=”button” value=”Reload Page” onClick=”history.go(0)”>
- <input type=”button” value=”Reload Page” onClick=”window.location.href=window.location.href”>
How to limit the character entered in TextArea
Sample HTML:
Javascript:
function limit(oTextArea) {
return oTextArea.value.length != oTextArea.getAttribute(“maxlength”);
}