Get Current Root URL |
|
A very simple snippet, which stores the root URL in a variable:
alert(location.protocol + '//' + location.host)
|
KarthikG |
Answered# (1)
|
Reply For This Question
|
|
|
Answer(s) Posted
|
|
No Answer Found. Please post your answer!
|
Post Your Answer
|
Please login to post your answer.
|
|
|