Every line of 'change href jquery' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
214 function showHref(element) { 215 if (tempHrefs[element.attr('id')]) { 216 element.attr('href', tempHrefs[element.attr('id')]); 217 } 218 }
37 function redirectbasehref(el, responseText) { 38 var mo = responseText.match(/
131 function addHashIfNeeded(href) { 132 if (sniffer.history) { 133 return href; 134 } 135 var index = href.indexOf('#'); 136 if (index===-1) { 137 return href+'#'; 138 } 139 return href; 140 }
48 private _updateHref() { 49 let path = this._cleanUpHref(this._href); 50 51 this.linkHref = this._router.prepareExternalUrl(path, this._query); 52 this.hrefUpdated.emit(this.linkHref); 53 }
196 resolveHref(el) { 197 if (!el) { 198 return null; 199 } 200 const closestHrefEl = el.closest('[href]'); 201 return closestHrefEl ? closestHrefEl.getAttribute('href') : null; 202 }
27 pushHref (href) { 28 window.location.hash = href 29 }
43 function SetBaseHRef( baseHref ) 44 { 45 var eBase = document.createElement( 'BASE' ) ; 46 eBase.href = baseHref ; 47 48 var eHead = document.getElementsByTagName( 'HEAD' )[0] ; 49 eHead.appendChild( eBase ) ; 50 }
182 function createHref(location) { 183 return createPath(location); 184 }
84 private updateHref(): void { 85 let {to, params} = this.props; 86 87 try { 88 this.href = to.$router.$(to, params).$href(); 89 } catch (error) { 90 this.href = 'javascript:;'; 91 } 92 }
76 function createHref(location) { 77 return history.createHref(resolveLocation(location)); 78 }