Hi!
Id need ANY help you guys could spare on this matter: I'd need to do a dynamic script with the idea that i'd loop trough an list of items and create a ready popup window for each item. But I simply can't seem to get the function name to work. Is there ANY way to create the function name in the style of "function name+1();" ?
What i'm doing is this:
And later on, I could call on the popup functions as:
Can this even be done (simply)? I've only just begun working with scripts, so I'd appreciate every bit of info you could spare
thank you!!
Id need ANY help you guys could spare on this matter: I'd need to do a dynamic script with the idea that i'd loop trough an list of items and create a ready popup window for each item. But I simply can't seem to get the function name to work. Is there ANY way to create the function name in the style of "function name+1();" ?
What i'm doing is this:
Code:
<script>
function detail_popup() {
detail_popup = window.open('','name','height=600,width=500,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
detail_popup.document.write('detail line 1');
detail_popup.document.write('detail line 2');
return false;
}
</script>
And later on, I could call on the popup functions as:
Code:
<a href="#" onclick="detail_popup+1();">
Can this even be done (simply)? I've only just begun working with scripts, so I'd appreciate every bit of info you could spare