Page 1 of 1

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

Posted: Mon Dec 24, 2007 1:06 am
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

Posted: Mon Dec 24, 2007 5:17 am
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?

Posted: Mon Dec 24, 2007 5:29 am
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.

Posted: Mon Dec 24, 2007 5:35 am
by webspider
I will try this .Thank you very much for the help. :)