Declaring JavaScript global function within function code example
Example: access method globally js
window.checkCookie = function(){
// do whatever you want here
};
window.checkCookie = function(){
// do whatever you want here
};