Welcome to Dream.In.Code
Getting Help is Easy!

Join 86,372 Programmers. There are 1,462 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

How do you create a "Email this Page" link to your web page

 
Reply to this topicStart new topic

How do you create a "Email this Page" link to your web page

romeoa
post 30 Apr, 2008 - 11:59 AM
Post #1


New D.I.C Head

*
Joined: 10 Mar, 2007
Posts: 1



Hiya,

I know this might seem silly, but I have a client that wants a link on the top of all of their pages that allows the user to email a link to back to what ever page he/she happens to be on. I have never added this before and don't know if it can be done via CSS, PHP or Javascript. Is there some one out there that can help me?

-Romeo
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


no2pencil
post 1 May, 2008 - 02:19 AM
Post #2


DIC K-mart

Group Icon
Joined: 10 May, 2007
Posts: 3,322

You can use JavaScript to grab the current page:
CODE

<script LANGUAGE="JavaScript">
      <!--
      document.write("The current URL is : "+location.href+"<br>")
      // -->
</SCRIPT>

& then put that into a mailto: link:

CODE

<a href="mailto:eat@joes.com">Site you were on</a>
User is online!Profile CardPM
Go to the top of the page
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 5/17/08 02:38AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month