Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

js get current function name

function DisplayMyName() 
{
   var myName = arguments.callee.toString();
   myName = myName.substr('function '.length);
   myName = myName.substr(0, myName.indexOf('('));

   alert(myName);
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: count div class in div jquery 
Javascript :: encrypt data using SHA256 algorithm in JavaScript 
Javascript :: shadown reAct native 
Javascript :: javascript Find the number of days between two days 
Javascript :: vue dynamic create watch 
Javascript :: laravel query json 
Javascript :: angular get first element ngfor 
Javascript :: getvalue data from datetimepicker 
Javascript :: js tab active 
Javascript :: new create react app 
Javascript :: node es6 import 
Javascript :: javascript wait for multiple promises 
Javascript :: factorial of number js 
Javascript :: (0 , _reactRouterDom.useHistory) is not a function 
Javascript :: bootstrap in react 
Javascript :: react native submit on enter key 
Javascript :: toggle in react 
Javascript :: javascript round date to nearest 15 minutes 
Javascript :: angular formData print values 
Javascript :: react form reload page 
Javascript :: fs.writefilesync in nodejs 
Javascript :: javascript count instances in string 
Javascript :: express trust proxy 
Javascript :: for of array javascript 
Javascript :: javascript find string between two characters 
Javascript :: how to clear local storage 
Javascript :: changing color of console log 
Javascript :: fetch post 
Javascript :: Handle an input with React hooks 
Javascript :: get params in react router dom v6 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =