Sound Feelings Banner 1
Sound Feelings Banner 2
Sound Feelings Logo

 

 

JavaScript Displays
Current URL of Each Web Page

 

        Place this code one time on your master page and it will display as the unique full absolute URL of each individual web page within your site. It’s ideal if you’re using an html editor with master pages and you want the current URL to show up on each page, but you don’t want to have to manually do it. This might be useful as a courtesy for viewing or printing to indicate its source. There are two versions of the JavaScript: one that shows the pure file path and one that creates a hyperlink. See also: tutorials, free tips, free information how-to books.

The following script generates the current url of the page, without the hyperlink.

<SCRIPT LANGUAGE="JavaScript">
  
      <!--
      {
       document.write(location.href);
      }
      // -->
</SCRIPT>

It displays the current url like this:

 
 

The following script generates the current url of the page, with the hyperlink.

<SCRIPT LANGUAGE="JavaScript">
  
      <!--
      document.write('<A HREF="' + location.href +'">');
      document.write(location.href);
      document.write('</A>');
      // -->
</SCRIPT>

It displays the current url like this: 

 
 

        We use this script ourselves at the footer of each of our web pages. The best way to verify that this is working is to try it out on one of your own web pages. Embed the code in the “body” of your page and then publish the page. If you try to verify by checking “page source,” you will be able to see the actual code in IE, but not in Netscape.

Products We Recommend.

        Cyber PatrolI don’t think it’s a good idea to give your toddler access to the internet. But if it’s unavoidable, you absolutely must get an internet filter. CyberPatrol's big advantage is versatility. It gives parents more options than any competing product. Customization can apply to any or all users. All parental control software lets users restrict kids' access to Internet applications like chat, file-sharing or web browsing, but CyberPatrol can also restrict access to programs on the computer’s hard drive, such as games or finance software.

        Please see our free tips on toddler-proofing your computer.

        Please see our other free tips on various subjects.

     

         

Attention Webmasters and Publishers:
--Free Content--
You’re welcome to copy and paste this article
(in full, or excerpted)
and use it in your website or publication (on or offline).
All that’s required is that you let me know about it and that you include the following brief credit:

Article by Howard Richman of Sound Feelings Publishing,
Tarzana, California.

http://www.soundfeelings.com/free/current_url.htm

 

Home   About Us  Contact Us  Free  Products

Links  Privacy Policy  Security Statement  Site Map  Awards  Affiliates

Q&A  Testimonials  Disclaimers  Guarantee  Order Now!  Shopping Cart

FreeViralBanner
Labelled with ICRA

 

SecurityMetrics Identity Theft Protected  

BBBClickToCheck
In Association with Amazon.com
SafeSurf Rating System

Credit Card Processing
 

google_checkout
Visa MasterCard American Express Discover Carte Blanche Diners Club En Route JCB

Copyright © 1998-2009 Sound Feelings Publishing, Tarzana, California, All Rights Reserved.
Tel: +1-818-757-0600 Customer Comments

Website created by Howard Richman with special thanks
Website maintained by web engineer
Last updated Saturday, October 24, 2009

 

 

Custom Search