jQuery code to disable the webpage's double-click event. This post should be active. Use addEventListener(event, function, useCapture) to disable any mouse click action. Call this function on click.