javascript get browser url - Javascipt

Mobile
feeds
Welcome Login | Register

javascript get browser url - Javascipt
Reply Your Comments:
Click this button if you are interested in replying to this topic and leave your comments
Sent To Friend
CLick this button if you want to send this page to a friend.
Subsribe To Rss Feeds
Subscribe to RSS
CLick this button if you want to subscribe to this RSS Feed. You can use your browsers feeds burners if you have mozilla or internet explorer 7 or higher and keep up with updates.
  Forums Index
      » Javascipt Forums
        » » javascript get browser url
javascript get browser url - Javascipt
Post Description: javascript get browser url Javascipt
Post Tags:
This Post Has Been Viewed 4487 Times Since Mon May 26, 2008 8:59 am Author hostman with 6 replies
javascript get browser url - Javascipt
Advertise On This Page




today i wanted to get the full url from my browser using javascript

so in order to help others, im posting my notes here so you guys with wallpaper websites can benefit and make your websites much better using php and javascript both server side and clien side scripts

so i lets say i want to get the url from the current page im viewing right now well you can use this code to do that

<script language="javascript" type="text/javascript">
document.write (document.location.href);
</script>


look at the demo below to see how how it works

GET URL DEMO



as you can see, this is an easy way of getting the full url address from the adress bar in your browser like firefox or internet explorer

now the trick is to make this server side like php that would be awsome but i haven't figure out that one out yet.

i hope this helped you.. if so, please give me your comments, if it was a waste of your time,, hmm. still tell me what you think.

thanks




Leave Your Comments

Your Name
Your Email Address (Will Not Be Published)
Notify Me When Someone Replies to this Page
(An email will be sent to you when someone replies to your comments)
Your Comments
Include A Picture with your comments
Share
| More
Share this page by putting this URL in your comments to other websites like myspace, Facebook, Twitter friendster, Hi5, Groups, Boards, Forum or others. Just Copy and Paste this Code
URL:
To embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it.
Embed:
BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums
BBCODE:
Subscribe Feeds
Webmasters - Exchange Links With Us. Add related websites to this topic
Add Link:
Links Related to : javascript get browser url - Javascipt

Comments and replies About javascript get browser url - Javascipt
:: 1 :: Reply #62103 Reply By f1n On Thu Jul 17, 2008 1:19 am
f1n:
man! thanks a lot!
:: 2 :: Reply #63680 Reply By manoj On Mon Jul 28, 2008 6:21 am
manoj:
hi,
i am getting a small problem i.e when i am changing the url and when i am searching the url in the unload event then i am getting the url of the last page itself i am not getting the present page url how can i get it?

i.e first i entered myemail


and next i entered google

in unload event i am getting the myemail only

thanks,

manoj
:: 3 :: Reply #72269 Reply By YeahBut On Thu Sep 25, 2008 7:10 pm
YeahBut:
???

whe you use frames, that doesn't work;
:: 4 :: Reply #96879 Reply By kyle On Thu Mar 12, 2009 12:33 pm
kyle:
see $_server for php

and reference the parent when using iframes or window.parent.document.location.hre .. for instance.
:: 5 :: Reply #104437 Reply By bharath On Tue May 26, 2009 10:48 pm
bharath:
thank u very much
:: 6 :: Reply #124005 Reply By catherine On Mon Dec 21, 2009 8:39 pm
catherine:
thanks for the useful info.