打开
<a href="mailto:[email protected]" class="quicklink">Forgot My Password</a>传值不太明白

解决方案 »

  1.   

    用mailto无法传值,如果把值按下格式maito:[email protected]?subject=...&body=.. 也不行,我试过,长度有限制
      

  2.   

    mailto Protocol--------------------------------------------------------------------------------Opens a client's e-mail system.Syntaxmailto:sAddress[sHeaders]
    TokenssAddress
    One or more valid e-mail addresses separated by a semicolon. You must use Internet-safe characters. Use %20 for the space character.
    sHeaders
    Optional. One or more name-value pairs. The first pair should be prefixed by a "?" and any additional pairs should be prefixed by a "&". The name can be one of the following strings.
    subject
    Text to appear in the subject line of the message.
    body
    Text to appear in the body of the message. 
    CC
    Addresses to be included in the "cc" (carbon copy) section of the message.
    BCC
    Addresses to be included in the "bcc" (blind carbon copy) section of the message.
    ResFor more information on the mailto protocol, see RFC 2368 . Available as of Microsoft&#174; Internet Explorer 3.0 or later. ExamplesThe following example shows a mailto URL that will prepare an e-mail message when typed into the Internet Explorer address bar. mailto:[email protected]?subject=Feedback&body=The InetSDK Site Is Superlative"
    The following example shows a link that will prepare an e-mail message. <A HREF="mailto:[email protected]?
        subject=Feedback&amp;
        body=The%20InetSDK%20Site%20Is%20Superlative">
        Click here to send feedback to the InetSDK.</A>
    The following example shows a link that will prepare an e-mail message with multiple lines of text in the body.<A HREF="mailto:[email protected]?
        subject=Feedback&amp;
        body=The%0d%0aInetSDK%0d%0aSite%0d%0aIs%0d%0aSuperlative">
        Click here to send feedback to the InetSDK.</A>
    The following example shows how to use an HTML form to create an e-mail message. <FORM ACTION="mailto:[email protected]" METHOD=GET>
    <INPUT NAME=subject TYPE=hidden VALUE="InetSDK%20User%20Feedback">
    Enter comments about this site:<BR>
    <TEXTAREA NAME=body COLS=40>
    InetSDK: http://msdn.microsoft.com/workshop/
    The InetSDK site is superlative!
    </TEXTAREA>
    <INPUT TYPE=submit VALUE="Send Feedback">
    </FORM>--------------------------------------------------------------------------------&#169; 2003 Microsoft Corporation. All rights reserved.
      

  3.   

    var oEmailThis = document.getElementById('emthis');function emThis()
    {
    var sSubject = "Email Title Text";
    var sBody = "Email Content Text";
    var et='mailto:?subject=' + sSubject + '&body=' + sBody;
    window.open(et);
    return false;
    }function initialEmailAFriend()
    {  
      oEmailThis.attachEvent("onclick", new Function("emThis()")); 
    }initialEmailAFriend();