I am trying to open a popup windows but the button's onclick content is stored in a variable. Thsi is my approach:
var page = 'window.open(\'ticket.html?wallet='+global_wallet+'\',\'popUpWindow\');';
document.getElementById('EditButton').onclick=page;
This is not working. Not popup being displayed. Something is missing and i don't figure out what is it...
Regards,