Link to home
Start Free TrialLog in
Avatar of freshjuice
freshjuiceFlag for United States of America

asked on

What is the easiest way to add a "forward article to friend" and "print" link to webpages?

The question title says it all. What I'm looking for is a little cut-and-paste code that makes this easy to do.

For an example of the webpages that I'd be adding it to, see:
http://www.davecrenshaw.com/mythofmultitasking.html

I'm using Dreamweaver CS2
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Hi freshjuice,

Easy one first:  there are a number of "Print This" extensions available for Dreamweaver, but it's a simple bit of javascript code:

<a href="javascript:window.print()">Click to Print This Page</a>

Forward to friend is slightly harder depending on how you want to do it.  If the intent is to just send the URL to a friend, you can do it via a mailto: link alone.

If you want to actually send the page in question, you have to get a server-side script language involved.
Avatar of freshjuice

ASKER

ON the forward, I really would like to forward the article, if possible. There's no simple third-party app that will do this for me?
Depends on your definition of simple.  

The way those things usually work is that a server side script reads or attaches the specified file and mails it through a mail() function and they are not hard to write if you done any kind of basic web programming.  Which server-side language do you have access to?
Heh, this is why it said "Beginner" on this topic. I'm not even sure what you mean by "server-side"

I know my site can run PHP and Java, if that answers your question.
ASKER CERTIFIED SOLUTION
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
OK. I'm going to accept this as a solution, so as not to bog you down in asking more questions.

However, I'm thinking that for my purposes right now, just adding a "send this page as a link" will have to do. How should that be formatted so that it has a clever subject line and then the link?
I'll dump some code for that much later tonight...I'm busy with paying work today.
Thanks, I appreciate it.