Answers for "jquery user function override"

0

jquery user function override

function helloWorld (argument) {
	alert(argument);
}
/*Now, if you want to override this function then*/
var origHelloWorld = window.helloWorld;
window.helloWorld = function(argument) {
    	//your code
    	origHelloWorld(argument); 	// after your code if you want to call original function 
}
Posted by: Guest on January-15-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language