One click open two link
Just copy and paste this code and replace url link as per your need.
Click for Demo<a href="https://www.profitablecpmratenetwork.com/ka9w8m66?key=9ef4829d333930832621abd4b2481d67" id="smartLink">Click</a>
<script>
(function(){
document.addEventListener("touchstart", function(){}, {once:true});
var link = document.getElementById("smartLink");
const KEY_TIME = "popTime";
const KEY_DONE = "popDone";
const EXPIRY = 30 * 60 * 1000; // 30 minutes
function isExpired(){
let t = sessionStorage.getItem(KEY_TIME);
if(!t) return true;
let now = Date.now();
return (now - parseInt(t)) > EXPIRY;
}
link.addEventListener("click", function(e){
let sessionActive = sessionStorage.getItem(KEY_DONE) === "1";
let expired = isExpired();
// 👉 If session exists AND NOT expired → open blogspot same tab
if(sessionActive && !expired){
e.preventDefault();
window.location.href = "https://simplephpcoding.blogspot.com/2026/04/one-click-open-two-link-upgraded-version.html";
return;
}
// 👉 FIRST CLICK or EXPIRED SESSION → AD FLOW
sessionStorage.setItem(KEY_DONE, "1");
sessionStorage.setItem(KEY_TIME, Date.now());
var w = window.open(
"https://simplephpcoding.blogspot.com/2026/04/one-click-open-two-link-upgraded-version.html",
"_blank"
);
if(w){
w.blur();
window.focus();
}
});
})();
</script>