mailto force focus to the body of the message - email

Posted on 2007-07-25
Last Modified: 2012-05-05
Is there a way to set the focus when using a regular mailto: link to email someone

This does correctly prepopluate the fields, however the focus seems to stay in the subject line when I am attempting to force it to set its focus in the body of the email message.  

I realize this may be an issue in depenance on what the end users email is, but figured I'd ask incase there is a way to do this.
Question by:Britt Priddy Jr
    LVL 11

    Expert Comment

    Sorry, but no - it cannot be done that way. As you suspects, the javascript or HTML in a web page can not refer another program.

    LVL 16

    Assisted Solution

    confirming no, you cannot control anything in client applications

    Author Comment

    by:Britt Priddy Jr
    So I guess it just defaults focus to the subject -  no matter what?

    Reasoning of asking this:  I thought I seen somewhere that this possible.
    Thanks - I will leave this open another 24 hours and see if someone has any bright ideas.
    LVL 11

    Accepted Solution

    >> So I guess it just defaults focus to the subject -  no matter what?

    It sets focus on the appliation that handles the mailto link. Then, it is up to that application to handle the focus. When you build an application, you can decide how to handle the tab order on different form fields. The way Outlook (and most other email software) is built, the subject field gets focus whenever the form "new email" is opened from a mailto link. Again, this is not something javascript or HTML in a web page can control.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Suggested Solutions

    Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
    This demonstration started out as a follow up to some recently posted questions on the subject of logging in: and…
    In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
    In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now