MCQ
Which method is used to get the current URL of the page?
JavaScript
A window.location.href
B document.URL
C location.href
D All of the above
Explanation

All of these methods can be used to get the current URL.