Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const url = window.location.href
- const title = document.getElementById("title")
- if(url.match(".it")) {
- title.append("Benvenuto!")
- } else if(url.match(".de")) {
- title.append("Herzlich Willkommen!")
- } else {
- title.append("Welcome!")
- }
Add Comment
Please, Sign In to add comment