I have the next in JS:
function doC() {
this.try = document.getElementById("try");
function tryC(){
//do something
}
}
Now, I want to call tryC function, when so I wrote the next:
<script type="text/javascript" src="myFile.js"></script>
<script type="text/javascript">tryC();</script>
But as I see, nothing happen. Ho I call tryC()?
dois a keyword likeif, so you should rename that function.doCisn't a keyword, so it doesn't matter.