var searchURL = window.location.search; searchURL = searchURL.substring(1,searchURL.length); this.param = searchURL.split("&")[0].split("=")[1];