How to get current URL in javascript?
I need to get the current url in javascript to check it and then back one page depends on condition , please help?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.

Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Mohammed Deeb HammoudehRank #1,485 · 1.1K reputationPosted Dec 21, 2016, 11:15 PM EST
Suvendu Shekhar GiriRank #546 · 4.4K reputationPosted Dec 21, 2016, 11:17 PM EST