// Easy Way - how to add parameters to url javascript const MyURL = new URLSearchParams(window.location.search); MyURL.set('Name', 'HazaaZOOZ'); window.location.search = MyURL;