I am quite new to javascript. I tried searching for this question, couldn't find it.
I want to access my url bar by running the script so that i can type a new url at runtime. How do i access it and change it. I don't want to move to a new url until and unless user hits the enter key. I only want to type it.

Is it possible?