if you use jQuery, its quite simple. Here you go
$(document).keypress(
function(event){
if (event.which == '13') {
event.preventDefault();
}
});
More Related Contents:
- location.host vs location.hostname and cross-browser compatibility?
- js window.open then print()
- Clear localStorage on tab/browser close but not on refresh
- Could a website force the browser to go into fullscreen mode?
- Why does not javascript show the output when button is clicked
- Javascript: Increasing the price of a item
- Countdown in days
- Can I hide the HTML5 number input’s spin box?
- How do I use Mechanize to process JavaScript?
- html5 localStorage error with Safari: “QUOTA_EXCEEDED_ERR: DOM Exception 22: An attempt was made to add something to storage that exceeded the quota.”
- Text-overflow ellipsis on left side
- JavaScript DOM: Find Element Index In Container
- Jquery Event won’t fire after ajax call
- Get unique selector of element in Jquery
- How to get all selected values from ?
- Prevent selection in HTML
- How to change style of iframe content cross-domain?
- window.open() on a multi-monitor/dual-monitor system – where does window pop up?
- Set default value for a input file form [duplicate]
- For a push notification, is a websocket mandatory?
- Why does JavaScript navigator.appName return Netscape for Safari, Firefox and Chrome?
- Onclick reload the div only
- Error message “DevTools failed to load SourceMap: Could not load content for chrome-extension://…”
- How to display selected image without sending data to server?
- How to disable JavaScript function calls from the browser console?
- How to get the value of a selected radio button
- universal javascript for set homepage functionality [duplicate]
- Javascript-Setting background image of a DIV via a function and function parameter
- clearing circular regions from HTML5 Canvas
- How to check if HTML5 audio has reached different errors