Tag: href

Simplemente llamamos a la siguiente funcion indicándole el parametro que queremos: function getUrlParameter(name) { name = name.replace(/[[]/, "\[").replace(/[]]/, "\]"); var regexS = "[\?&]" + name + "=([^&#]*)"; var regex = new RegExp(regexS); var results = regex.exec(window.location.href); return results == null ? null : results[1]; }
You can remove any href that contains specific text inside the link. If you want to remove the link to any page that contains “DispForm” you can do it like this: $('a[href*="DispForm"]').removeAttr("href"); ‘*=’ means ‘Contains’, but you can use anything you need: *= Contains = Equal != Not equal ^= Starts With $= Ends With
<script language="javascript" type="text/javascript"> document.location.href=document.location.protocol + '//' + document.location.host </script>