Reputation: 3308
In this code:
if (screen.width <= 800) {
window.location = "http://www.megaoferta.bg/mobile";
}
How can I identify the URL from whom the page is opened with JavaScript?
For example, if people get to my page from a Google search, how can I obtain the page "google.com" using JavaScript?
Upvotes: 0
Views: 108