mailto

How to access JavaScript href event that triggered beforeunload

主宰稳场 提交于 2019-11-30 17:41:46
问题 I would like to access the event that caused a beforeunload event. Specifically, if I click on a link to another page, I would like to know what the link was in the beforeunload event handler. In this way, I would be perform different actions in the beforeunload event handler according to what the URL was. Eg 'http:' or 'https:' warn user about losing unsaved changes; 'mailto:' or 'skype:' don't warn user because page is not actually going to be unloaded. I am trying to build a good solution

How to avoid the mailto annoyance?

非 Y 不嫁゛ 提交于 2019-11-30 17:40:33
问题 I am working on a website and would like for my users to be able to give feedback as easily as possible. I know one way but I've always hated it: <a href="mailto:someone@somewhere.com">Click Here to be annoyed!</a> Is there a way in JavaScript or HTML to allow my users to email me without having to go through a lot of trouble? 回答1: A CONTACT FORM: avoids spam bots that pick up 'mailtos' allows you to validate that the form user is 'human' (optional captcha) gives you total server-side control

Error when using mailto: link in Mobile Safari in app-capable mode

a 夏天 提交于 2019-11-30 17:10:08
问题 I've got a form in a web page with an action that is "mailto:email" (where email is a real email address). When I load this page in Mobile Safari in regular mode (ie, not launched from home screen with app-capable mode), this works fine - after I submit the form, the email app comes up. However, when I'm in app-capable mode and have launched from the home screen (so, no Safari chrome), and submit the form I get the error "URL can't be shown". However, a regular mailto: link (ie, not in a form

How to disable an email link?

微笑、不失礼 提交于 2019-11-30 12:15:52
I am using Ruby on Rails 3 and I would like to disable an email address link in a HTML email. For example, if in an email I send some raw HTML like Hi, you email is: <br/> test@email.com Gmail autodetects that this is an email address and changes it to Hi, you email is: <br/> <a target="_blank" href="mailto:test@email.com">test@email.com</a> I would like to have this output # Text without the 'mailto:' link Hi, you email is: test@email.com How can I do that? rubyprince You can try Hi, you email is:<br /> test@email.com I have a more natural suggestion: wrap the email/url in an anchor hyperlink

mailto: links unsupported in Android?

 ̄綄美尐妖づ 提交于 2019-11-30 08:23:52
问题 I dont have a real Android device so I'm using emulators for all my development for now, are mailto: web links really unsupported on Android devices 2.1 and below? 2.2 works, but every time I click a mailto: link on 1.6 or 2.1 even, I get an [unsupported action] dialog. Anybody with a real device want to test this out? 回答1: You have to handle it yourself in a WebViewClient public class MyWebViewClient extends WebViewClient { Activity mContext; public MyWebViewClient(Activity context){ this

Line break in the mailto onclick

北城以北 提交于 2019-11-30 06:18:33
The code below works great except the email has all the text on one line like this: Height: 60 | Diagonal: 123 | Width: 107 | Total SF: 13.92 | Cost Per SF: 450 | Total Cost: $6,264.00 I would like to break after each so it looks like this: Height: 60 Diagonal: 123 Width: 107 Total SF: 13.92 Cost Per SF: 450 Total Cost: $6,264.00 I tried \n \r \n\r etc but none of them work. Any ideas? <a class="emailText" href="mailto:?subject=Screen Dimensions" onclick="this.href='mailto:?subject=Screen Dimensions&body='+'Height: '+document.forms.myform.high.value+' | '+'Diagonal: '+document.forms.myform

How to show email addresses on the website to avoid spams?

╄→尐↘猪︶ㄣ 提交于 2019-11-30 01:10:21
I show email on my website as following <a href="mailto:inf@example.com">Email</a> But I read the following while analysing my website using woorank.com , what should I do to avoid this? Malicious bots scrape the web in search of email addresses and plain text email addresses are more likely to be spammed. Singular1ty There are multiple different choices for hiding emails on websites, commonly using either the HTML entity version of the email address (as Aziz-Saleh suggested), but from an actual web design point of view, just putting the email address like that on a website isn't the most user

How can a Delphi Program send an Email with Attachments via the DEFAULT E-mail Client?

我的未来我决定 提交于 2019-11-30 00:31:05
Within my program, I am composing an email to send using the default e-mail client software installed on a user's machine. I have composed the mailto address, the subject, the multilined body, and I have several attachments to be included. I almost got this working using mailto and ShellExecute as follows: Message := 'mailto:someone@somewhere.com' + '?subject=This is the subjectBehold Error Report' + '&body=This is line 1' + '%0D%0A' + 'This is line 2' + '%0D%0A' + 'This is line 3' + '&Attach=c:\file1.txt'; RetVal := ShellExecute(Handle, 'open', PChar(Message), nil, nil, SW_SHOWNORMAL); if

Set a mailto link with a subject containing an ampersand (&)

亡梦爱人 提交于 2019-11-30 00:21:17
问题 Im using the following mailto link to send an email: <a class="share3" title="" href="mailto:?subject=@check&body=@domain"> It works well, but sometimes my subject will contain an ampersand (&) character, and when it does my email is created without a body. Any way to resolve this problem? 回答1: In order to get special/reserved characters into a URL, you must encode them - to get an & to work, it must be encoded to %26 . More details here: http://www.w3schools.com/tags/ref_urlencode.asp 回答2:

How to spamproof a mailto link?

喜你入骨 提交于 2019-11-29 20:35:59
I want visitors to be able to click on (or copy) an email address directly on my webpage. However, if I could make it (a little bit) harder for bots and other crawlers to get said email address and register it in a spam list, it would be awesome. I found different ways of doing this (i.e. encoding mailto HTML links), either with JavaScript or in pure HTML, but what do you guys recommend ? The JavaScript techniques seem more complicated, but this may potentially affect users that have it turned off, and legit crawlers like Google. On the other hand, the HTML one seems a bit basic, the bot