How To Get URL With Javascript Code

RegisterLogin
How To Get URL With Javascript Code
Post Description: 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?
Tags: how, to, get, url, with, javascript, code
This Post Was Posted On Aug 31, 2010 By Benny #3532
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?

Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
webune
#4406 1
you, all you need to do is use this code:

<script language="javascript" type="text/javascript">
document.write (document.location.href);
</script>
Aug 31, 2010 Reply Report abuse
©2011 Webune Forums - Sun Dec 18, 2011 2:42 pm
Powered by: Webune Forums V3