<script> function loadPage(url) {var url2 = ''; url = url.split(/#|\?name=/); if(url[2]) url2 = url[2]; url = url[1]; alert([url,url2]) } loadPage("#load?name=Lager"); loadPage("#load"); </script>