I need your help, I wish to do a "goto" like "goto" in batch :
:loop1
goto loop1
but in javascript for html page, all my research are useless... it can be so usefull to know that !
in my case i need this code because i change a the same 'block of code' many times in different function, and there are to much variable to parse ... so it can help my a lot
here a simple exemple of what i want to do :
for (var i=0; i < 999; i++) {
//some code here
goto go_to_1;
go_to_2:
//some code here
};
for (var i=0; i < 5; i++) {
//some different code here
goto go_to_1;
go_to_2:
//some different code here
};
function mytest () {
for (var i=0; i < 100; i++) {
//again some different code here
goto go_to_1;
go_to_2:
//again some different code here
};
};
go_to_1:
//code here
//always the same code here ,i change it many times
temp = "library"+i+"";
//code here
goto go_to_2;
is that possible ? how use the "goto" function in javascript ?
Thank for you time
Thank for your help !