To retrieve the username from a URL and display it in HTML
Example URL
something.com?editors=username
HTML code snippet:
<P id="demo"><p>
Javascript function:
document.getElementById("demo").innerHTML =
"Welcome " + get_editor() + " to my website";
function get_editor() {
var url = new URL( window.location.href );
var params = new URLSearchParams(url.search);
return params.get('editors');
}