Hi @Kalesh A1,

 

Sorry, I was thinking backend 🙂

 

Try this:

function onLoad() {

alert(getParameterValue('id'))
}   
function getParameterValue(name) {  
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");  
var regexS = "[\\?&]" + name + "=([^&#]*)";  
var regex = new RegExp(regexS);  
var results = regex.exec(top.location);  
if (results == null) {  
	return "";  
} else {  
	return unescape(results[1]);  
}  
}

Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.