const url = new URL(window.location.href); const parameterValue = url.searchParams.get('pramaName'); console.log(parameterValue);