how to give option like email to friend, bookmark and print?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
webspider
Forum Commoner
Posts: 52
Joined: Sat Oct 27, 2007 3:29 am

how to give option like email to friend, bookmark and print?

Post by webspider »

hi,
I am wondering whether it is the right place for asking this question?i want to give three button for email to friend, bookmark and print in a page. I think for email option, i need to use any server side scripting language.Am I right? What about other two options? Any help ? thanks
User avatar
webspider
Forum Commoner
Posts: 52
Joined: Sat Oct 27, 2007 3:29 am

Post by webspider »

Ok I got how to print a page.I need to use javascript like this

Code: Select all

<a href="javascript:window.print()">Click to print</a>
Can anyone help me about how to bookmark a page clicking an icon?
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

It's different for different browsers.

IE is something like:

Code: Select all

function addfav()
   {
   if (document.all)
      {
      window.external.AddFavorite
      ("http://www.webdevelopersnotes.com","WebDevelopersNotes")
      }
   }
Found that by doing a quick google search.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
webspider
Forum Commoner
Posts: 52
Joined: Sat Oct 27, 2007 3:29 am

Post by webspider »

I will try this .Thank you very much for the help. :)
Post Reply