hello my source code is this
function xcuDownloadFunction(ele, url) {
var permissionValue = {{ $xf.visitor->hasPermission('xcuLimitRosourceDownloads', 'countdownTimerTime') }};
var countdownValue = (permissionValue === 0) ? {$xf.options.xcu_lrdl_countdown_timer_time} : permissionValue;
var counter = (countdownValue === 0) ? {$xf.options.xcu_lrdl_countdown_timer_time} : countdownValue;
var a = document.createElement('a');
var link = document.createTextNode("{{ phrase('download') }}");
var icon = document.createElement('i');
icon.className = "fas fa-download";
a.appendChild(icon);
a.appendChild(link);
a.href = url;
a.className = "button button--cta download-btn";
What should I add to this code to open a new window or overlay when the link is clicked?
Thanks in advance for your help
I tried targetblank a.url new window but the result was unsuccessful
New contributor
byGA Bilgiplatosucom is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1