So I have a page that I want to retrieve the URL from but I want to get the current text that is written there regardless of if the url was submitted or not (imagine if the user entered a page and decided to change the val=sfbdjkfg directly through the url but didn't submit it )
So window.location.href
is not what I want because I have to submit to get the URL
Is there any way to do this? What about using a javaScript framework that uses dynamic routes?