Every line of 'change href javascript' 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.
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 }
76 function createHref(location) { 77 return history.createHref(resolveLocation(location)); 78 }
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 }
27 pushHref (href) { 28 window.location.hash = href 29 }
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 }
82 function make_url_href(url, title) { 83 const pref = '<a href="' + url + '">'; 84 return pref + suff; 85 }</a>
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 }
214 function showHref(element) { 215 if (tempHrefs[element.attr('id')]) { 216 element.attr('href', tempHrefs[element.attr('id')]); 217 } 218 }
113 function addLinkRef(href) { 114 var 115 head = document.getElementsByTagName('head')[0], 116 link = document.createElement('link'); 117 link.rel = 'stylesheet'; 118 link.type = 'text/css'; 119 link.href = href; 120 head.appendChild(link); 121 };
4 get href() { 5 return this.node.source.value; 6 }