JSFiddle - React, Tailwind, and code Playground JavaScript url = "/Home/LoadData?page=2&activeTab=House"; alert(url.split('activeTab=')[1]);