473,396 Members | 2,109 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

how to create a button to mail the webpage

Hello,

I want to create a button that when clicked, the webpage will then be in the body of Microsoft outlook ready to be emailed. It is for our office maps. People here have difficulty using the file>send page as> of the internet explorer and demanded that a button be but but I cannot seem to make it work that way.

Please help.
Jul 6 '07 #1
1 1159
ak1dnar
1,584 Expert 1GB
This a simple example to do such a thing.This is enough for sending palin text. I didnt try it for rich text. You have to give it a try.

Thanks!- Ajaxrand

Expand|Select|Wrap|Line Numbers
  1.  <html> 
  2. <head>
  3. <script language="JavaScript" type="text/javascript">
  4. function mailIt(){
  5. var mailbody = document.getElementById("mailbody").innerHTML;
  6. window.location="mailto:info@domain.com?subject=Test Mail&body="+mailbody+"";
  7. }
  8. </script>
  9. </head>
  10. <body>
  11. <DIV id="mailbody">
  12. I want to create a button that when clicked, 
  13. the webpage will then be in the body of 
  14. Microsoft outlook ready to be emailed. 
  15. It is for our office maps. People here have 
  16. difficulty using the file>send page as> of the 
  17. internet explorer and demanded that a button be but 
  18. but I cannot seem to make it work that way.
  19. </DIV>
  20. <a href="#" onclick="javascript:mailIt()"><input type="button" value="Mail It"></a>
  21. </body>
  22. </html>
  23.  
Jul 6 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Elliot Temple | last post by:
How do I make Python press a button on a webpage? I looked at urllib, but I only see how to open a URL with that. I searched google but no luck. For example, google has a button <input...
15
by: qwweeeit | last post by:
Hi all, Elliot Temple on the 1 June wrote: > How do I make Python press a button on a webpage? I looked at > urllib, but I only see how to open a URL with that. I searched > google but no...
6
by: SamIAm | last post by:
Hi am creating a email application that needs to mail out a very large amount of emails. I have created a multithreaded c# application that using message queuing. I have created a threadpool of 5...
2
by: COHENMARVIN | last post by:
I am working on an application where the user enters info into a multiline textbox. The info is Stylesheet tags that he wants web pages to use. Basically he would be entering a stylesheet into...
3
by: gjtired | last post by:
Hi, When I click a button or dropdown box at the bottom of the web form the focus shifts to the top of the form. What can I do to make it stay where it is at? Thanks Gayle
0
by: eswar525 | last post by:
hii, i'm a bit new to visual basic. my problem is: 1.open a webpage (for example mail.yahoo.com) 2.paste the login name and password in the appropriate boxes. 3.and press the sign-in/submit...
3
by: nektir | last post by:
i've never used a root link like this with a button, so perhaps this is why i've never encountered a problem.. but how would one fix this: <input name="Go to this webpage" type="button" value="Go...
3
by: bluez | last post by:
I want to design a webpage where user can search the data from the database and list out the related records. Each of the record got a delete button which allow user to delete the record. ...
1
by: Lisa | last post by:
Is there any way to copy an e-mail from Outlook and paste it into a webpage? I don't mean the contents of the e-mail. I know that I can copy an e-mail and paste the .eml file onto my desktop, and...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.