how to prevent a default action a browser makes javascript code example
Example: js opposite of preventdefault
event.preventDefault(); //or event.returnValue = false;
//and its opposite(standard) :
event.returnValue = true;
event.preventDefault(); //or event.returnValue = false;
//and its opposite(standard) :
event.returnValue = true;