window.location, window.open

by rowntreerob

HTML

<p>url, paywall to get around: <input type="text" id="f" size="74"></p>

<a href="https://cfworker-beatthatwall.jayass.workers.dev/?url=" id="link1">New Window</a>

JavaScript

// paywall avoid  copy url paste to box
// click the link opens new window 

$('#link1').on('click', function(ev) {
var box1 = document.getElementById("f").value;
    var u1 = 'https://cfworker-beatthatwall.jayass.workers.dev/?url='
    var url =  u1 + box1
   // console.log(url)
    window.open(url,"my_window");
});