For example:
function principal()
{ function one_level_1(){...}
one_level_1();
function two_level_1(){...}
two_level_1();
function three_level_1()
{ function one_level_2(){...}
one_level_2();
}
three_level_1();
}
<input type="text" onfocus="one_level_2();"/>
I would like the event onfocus
of this input
to call the function one_level_2
so that only the internal statements to it were executed.
What is the correct way to call this function?
I tried <input type="text" onfocus="(principal().three_level_1().one_level_2();)"/>
, but without success.