There was already an empty page already with page id =6. What I'm not able to figure out is how to use the javascript code
let urlParams = new URLSearchParams(window.location.search);
let url = urlParams.get('url');
fetch(url, {
method: 'post',
mode: 'no-cors',
headers: { 'Content-type': 'text/plain' }
}).then((response) => {
setTimeout(function () {
window.location.href = document.referrer}
, 2500); // # of milliseconds to pause for, 2500 = 2.5 seconds
})
How should I copy this code in the page id=6 . Isnt there a format for writing javascript inside HTML ?
Please guide me on this
------------------------------
Aswin Babu
------------------------------