When i have the address: <link rel = "alternate" hreflang = "de" href = "..." />.
I would like to take the hreflang value from this address, meaning "de".
1 Answer
You can get that value with this code.
var x = document.getElementById("myLinkID").hreflang;
-
-
-
-
yes, but using which code? then we get idea how to get this in php Aug 2, 2021 at 11:04