How To Get URL With Javascript Code
- Forums
- Javascipt
- How To Get URL With 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? [2233], Last Updated: Mon Jun 24, 2024
Benny
Tue Aug 31, 2010
1 Comments
440 Visits
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?
document.write (document.location.href);
</script>
https://www.webune.com/forums/20100831cgcb.html