unction getQuerystring(key) { key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,\\\]); var regex = new RegExp("[\\?&]"+key+"=([^&#]*)"); var qs = regex.exec(window.location.href); if(qs == null) alert("SOme message"); else alert(qs[1]); }
var qrStr = window.location.search; qrStr = qrStr.split("?")[1].split("=")[1];
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)