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;
-
- Than how your current code for setting that value?Dhiren Vasoya– Dhiren Vasoya2021-08-02 10:54:14 +00:00Commented Aug 2, 2021 at 10:54
- this value is set by the external modulebambo– bambo2021-08-02 11:01:43 +00:00Commented Aug 2, 2021 at 11:01
- yes, but using which code? then we get idea how to get this in phpDhiren Vasoya– Dhiren Vasoya2021-08-02 11:04:49 +00:00Commented Aug 2, 2021 at 11:04