js1.js
Code:
 
var ABC_x = "112";
var ABC_y = "184";
js2.js
Code:
  
var ABC_a = "234";
var ABC_b = "543";
arr= [];
will be
arr=[112,184,234,543];

I tried this:
Code:
  
<script type="text/javascript" src="js1.js" ></script>

<script type="text/javascript" src="js2.js" ></script>

<script type="text/javascript">

window.onload=function () {

var arr = [];

var el = document.getElementsByTagName('script');

for(var i=0; i< el.length; i++)
{ 
if(el[i].innerHTML.indexOf('ABC_') != -1)
{
arr.push(el[i].innerHTML.indexOf('ABC_')[i]) ;
}
}
alert(arr);

}
</script>
It did not that. How can I do? Thanks...