Below is the solution for adding URL using jquery event
$("#eventid").click(function() {
window.history.pushState({},'data',baseUrl+'?igq='+keyword+'&program='+program+'&type='+type+'&cat='+encodeURIComponent(CategoriesSelectedData)+'&page='+page);
}