Is it possible to change href to javascript?
I use the following code, but it does not work:
<base href="/" /> <script type="text/javascript"> function setbasehref(basehref) { var thebase = document.getElementsByTagName("base"); thebase[0].href = basehref; } //setbasehref("/"); setbasehref("http://newurl.com"); </script>
This line:
document.getElementsByTagName("base");
Do you have an element of type "base"?
Perhaps you could try to capture an element by its ID attribute?
document.getElementById("YourHyperlinksID");
Good luck.
Source: https://habr.com/ru/post/1720864/More articles:MulticastDelegate in ObjectiveC - objective-cWhat is meant by this. use after number in fortran? - fortranHow to join one thread with another in java? - javaTechnical Inquiry Fortran - fortranHow to stop threads in Java? - javaHow to use aspnetdb database with asp.net website - asp.netКак подавить/поймать System.ObjectDisposedException? - c#Linux screen capture - linuxhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1720868/swing-gui-components-too-tighly-packed&usg=ALkJrhiZzY5N1i48eXG4OvesBsq6bLxZZQMass Actions in Rails Restful Resources - restAll Articles