0

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 1

0

You can get that value with this code.

var x = document.getElementById("myLinkID").hreflang;

4
  • I need to get it in php Commented Aug 2, 2021 at 10:44
  • Than how your current code for setting that value? Commented Aug 2, 2021 at 10:54
  • this value is set by the external module Commented Aug 2, 2021 at 11:01
  • yes, but using which code? then we get idea how to get this in php Commented Aug 2, 2021 at 11:04

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.