Jump to content

maxim1o

Neophyte
  • Posts

    2
  • Joined

  • Last visited

Posts posted by maxim1o

  1. Для смены языка на сайте нужно в адрес добавить например /ru/

    текущий адрес узнаю так

    <p id="demo"></p>
    
    <script>
    document.getElementById("demo").innerHTML =
    "http://site.ru/ru/" + window.location.pathname;
    </script>

     

    но оно выдает текстом

    Вопрос: как сделать чтобы это была ссылка?

     

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy