I know this has been asked a thousand times but nothing I've tried has worked so far. I'd really appreciate some input. Here's my situation, I have this code in javascript:
<script>
var url = document.URL;
url = url.slice(17,21);
</script>
I need the value of url in a html input field which looks like this:
<input name="name" type="text"/>
I've tried with getElementbyId and it shows me nothing.
Is there something I've missed?