I'm trying to get the full url adress of the curent page using html and javascript. But I'm don't really good at web languages so I call for you're help.
Here is what I'm trying:
Your website url is: <script>(window.location.host)</script>
I'm trying to get the full url adress of the curent page using html and javascript. But I'm don't really good at web languages so I call for you're help.
Here is what I'm trying:
Your website url is: <script>(window.location.host)</script>
The way you could do it (not recommended is)
Your website url is: <script>document.write(window.location.host)</script>
better way would be to put a placeholder there and replace the content with innerHTML/textContent.
Your website url is: <span id="loc"></span>
<script>document.getElementById("loc").textContent = window.location.host;</script>