Answers for "how to get current url from javascript"

37

javascript get current url

var currentUrl = window.location.href;
Posted by: Guest on July-22-2019
1

get current url

global $wp;
echo home_url( $wp->request )
Posted by: Guest on October-09-2021

Code answers related to "how to get current url from javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language