• 22-10-2020, 16:29:50
    #1
    Arkadaşlar https://codepen.io/tenrisyambawa/pen/povNRde buradaki projede geri sayım bitince URL adresini aynı sekmede açıyor. Yeni sekmede nasıl açılmasını sağlarım.

    window.open(
    "url adresi", "_blank"); bu olmuyor. yada ben yanlış yere ekliyorum
  • 22-10-2020, 16:36:00
    #2
    function yeniSekmedeAc(url) {
            var win = window.open(url, '_blank');
            win.focus();
        }
    
    yeniSekmedeAc('https://google.com'); //Örnek kullanım
  • 22-10-2020, 16:49:17
    #3
    Webiand adlı üyeden alıntı: mesajı görüntüle
    function yeniSekmedeAc(url) {
            var win = window.open(url, '_blank');
            win.focus();
        }
    
    yeniSekmedeAc('https://google.com'); //Örnek kullanım
    teşekkürler ama yapamadım verdiğim linkte ki sisteme entegre çalışacak şekilde atarsanız sevinirim
  • 22-10-2020, 18:13:06
    #4
    function generate() {
    var linkDL = document.getElementById("download"),
    btn = document.getElementById("btn"),
    direklink = document.getElementById("download").href,
    waktu = 10;
    var teks_waktu = document.createElement("span");
    linkDL.parentNode.replaceChild(teks_waktu, linkDL);
    var id;
    id = setInterval(function () {
    waktu--;
    if (waktu < 0) {
    teks_waktu.parentNode.replaceChild(linkDL, teks_waktu);
    clearInterval(id);
    window.open(direklink, "_blank"); //buraya eklendi
    linkDL.style.display = "inline";
                
    } else {
    teks_waktu.innerHTML = "<i class='fa fa-clock-o' aria-hidden='true'/> " + "File siap diunduh dalam " + "" + waktu.toString() + " Detik....";
    btn.style.display = "none";
    }
    }, 1000);
    }
    
    //<![CDATA[
    function loadCSS(e, t, n) { "use strict"; var i = window.document.createElement("link"); var o = t || window.document.getElementsByTagName("script")[0]; i.rel = "stylesheet"; i.href = e; i.media = "only x"; o.parentNode.insertBefore(i, o); setTimeout(function () { i.media = n || "all" }) }
    loadCSS("//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css");loadCSS("https://fonts.googleapis.com/css?family=PT+Sans+Narrow:400,700");
    //]]>
  • 23-10-2020, 00:00:03
    #5
    tolgaand adlı üyeden alıntı: mesajı görüntüle
    function generate() {
    var linkDL = document.getElementById("download"),
    btn = document.getElementById("btn"),
    direklink = document.getElementById("download").href,
    waktu = 10;
    var teks_waktu = document.createElement("span");
    linkDL.parentNode.replaceChild(teks_waktu, linkDL);
    var id;
    id = setInterval(function () {
    waktu--;
    if (waktu < 0) {
    teks_waktu.parentNode.replaceChild(linkDL, teks_waktu);
    clearInterval(id);
    window.open(direklink, "_blank"); //buraya eklendi
    linkDL.style.display = "inline";
                
    } else {
    teks_waktu.innerHTML = "<i class='fa fa-clock-o' aria-hidden='true'/> " + "File siap diunduh dalam " + "" + waktu.toString() + " Detik....";
    btn.style.display = "none";
    }
    }, 1000);
    }
    
    //<![CDATA[
    function loadCSS(e, t, n) { "use strict"; var i = window.document.createElement("link"); var o = t || window.document.getElementsByTagName("script")[0]; i.rel = "stylesheet"; i.href = e; i.media = "only x"; o.parentNode.insertBefore(i, o); setTimeout(function () { i.media = n || "all" }) }
    loadCSS("//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css");loadCSS("https://fonts.googleapis.com/css?family=PT+Sans+Narrow:400,700");
    //]]>
    teşekkürler