1- You should close the script tags.
2- You don’t need to open separate script tags for sequential scripts.
3- You have to change the scope of the urlArray to global. You can do it by adding a var before the definition and outside of the function.
<script type="text/javascript">
var urlArray = [];
function AddSeries() {
url = getElementById('serieslink');
urlArray.push(url);
}
function clickyClick() {
for (url in urlArray) {
window.open(url,'_blank');
}
}
</script>
solved Functions not running when called? [closed]