function LoadParamValue() { var param = GetURLParameter(); document.getElementById('lblParamValue').innerHTML = param; } function GetURLParameter() { var url_string = window.location.href; var url = new URL(url_string); var param = url.searchParams.get("param"); return param; }