hi, im starting a new website and i want to put some javascript code.

the only thing stopping me right now is in order for my script to work, i need to get a variable for the current url in the broswer into the javascript code. im not familiar with javascript but i want to learn, while im learning i needed your help. do you know who i can get the url from the address bar into my script using javascript?