 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
johny
Joined: 02 Nov 2008 Posts: 4
|
Posted: Mon Nov 03, 2008 2:05 am email url |
|
|
|
Hi
is there a way of clicking on some text on my webpage that when clicked opens up you default email programs and emails the url of the site you are on |
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 1417 Location: Biloxi, MS
|
Posted: Mon Nov 03, 2008 7:50 pm |
|
|
|
| Could be done with an extended "mailto:" link properly coded. |
|
johny
Joined: 02 Nov 2008 Posts: 4
|
Posted: Wed Nov 05, 2008 1:38 am |
|
|
|
| any idea what the code would be |
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 1417 Location: Biloxi, MS
|
Posted: Thu Nov 06, 2008 7:15 pm |
|
|
|
| Code: |
| <a href="mailto:youatURL.com?body=Page's full URL here. Be sure to add file name."> |
Example:
| Code: |
| <a href="mailto:googleatgmail.com?body=http://google.com/search.php"> |
Note: The "@" symbol gets converted to the word "at" within the code tags above.
Add that to each page you have since the base URL will be the same, but the file name will change. Could do it better if you used a scripting language like PHP as that will do it server side and not depend on user using their own email program. |
|
johny
Joined: 02 Nov 2008 Posts: 4
|
Posted: Mon Nov 10, 2008 1:27 am |
|
|
|
| does not seem to be working for me for some reason, is there a way that i can insert a variable name into the body of the email, the page name is captured in a variable in a Java script in the code |
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 1417 Location: Biloxi, MS
|
Posted: Mon Nov 10, 2008 7:45 am |
|
|
|
| Post the code you used or the page link where used. |
|
johny
Joined: 02 Nov 2008 Posts: 4
|
Posted: Tue Nov 11, 2008 1:31 am |
|
|
|
| <a href="mailto:john.9.williamsatopenreach.co.uk?subject=http://openreacharisprocess.intra.bt.com/john/bns_amendments/index.htm/search.php">mail</a><br> |
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 1417 Location: Biloxi, MS
|
Posted: Sun Nov 16, 2008 1:23 pm |
|
|
|
This part, "http://openreacharisprocess.intra.bt.com/john/bns_amendments/index.htm/search.php", gets put into the subject line of my email.
Using this, "<a href="mailto:john.9.williamsatopenreach.co.uk?body=http://openreacharisprocess.intra.bt.com/john/bns_amendments/index.htm/search.php">mail</a>" will open this, "http://openreacharisprocess.intra.bt.com/john/bns_amendments/index.htm/search.php", into the body of the email.
If the JS can write what you want after the "body=" for each page, I'm sure that will appear in the body of the email. |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
|
 |
|
|
|
|
|
|
|