Chrome - onclick and href at the same time - html

This works fine in IE and FIREFOX. I just can't get it to work right in CHROME.
What I want to happen when the link is clicked, to launch the local mail client and then change the page to google.
In chrome, if I use the tag below it will launch the local mail client, but it won't change the page to Google.
Launch outlook and google
If I add "return false" on the end as seen below, it will change the page to google, but it won't launch the local mail client.
Launch outlook and google
How do I get this to work in CHROME like it does in IE and FIREFOX?

javascript: makes no sense in onclick and is syntactically incorrect. You should actually bind the event with JavaScript using addEventListener, but if you must use onclick, just
window.location.href = 'http://www.google.com/'
Should be enough. Also, why the return false? That would stop the default event which is the opening of the mail client, right?

Related

How to make chrome use external program for mailto links?

It seems like the mailto links we're embedding in our website fail to do anything in Chrome, though they work in Firefox.
hi this is a test
Do we need to do something special to enable mail links in Chrome?
Click on a mailto link does nothing. Nothing happens. It works in firefox and every other app on the computer.
How do I add an external program as the mail handler or make chrome use the system mail handler?
im try this in my chrome work
send email
im use windows im just configuration default app in setting windows
or type start button "default mail"

Why chrome shows alert randomly when try to open custom protocol url with location.href?

i had took a look to another threads about chrome and custom protocol apps, but i couldn't resolve a doubt i've got. In my web app, when you click a button it fire a new tab with an webpage (window.open(url, "_blank")). The new tab is opened with the url (annother web app with https protocol). This url fire a javascript function on load that verifies some things and then generate a custom url, for example myurl://base64code, and put it in an existing iframe in this way windows.frames['myframe'].location.href=theCustomProtocolUrl. i tried in different ways (location.replace, create a new iframe and set the url, etc) and i always have the same problem. If i refresh (ctrl f5) the page it always show the dialog or if i open the link with the developer console opened. But if i click my button and the page is opened in a new tab it doesn't work only if i refresh (ctrl+f5). This works perfectly on IE11, it launch the app directly.
Any ideas why chrome, and edge, works like this?
UPDATE: I have found the reason, is i use the protocolcheck.js (https://gist.github.com/vladimirtsyupko/cfcd332476b16683bb0b) library.
First i tried to open a protocol with the timeoutHack (it use blur event) and then, after failing, it fires the other url (in this case https) and the dialog doensn't appear. I found a bug with blur event on chrome > 85 https://bugs.chromium.org/p/chromium/issues/detail?id=1137801
Thanks in advance

mailto link is not working in Chrome Browser (Version :18.0.1025.152 m)

mailto link is not working in Google Chrome browser (Ver:18.0.1025.152 m)
Send mail!
I used the above code in ff and chrome. It works fine in ff but not in chrome
And you can test this link also. I think it is problem with chrome settings. Anyone know how to change settings?
This is because chrome handles the mailto in different way. You can got to chrome://settings/handlers and make sure that which is the default handler. In your case it will be none. Now go to gmail.com. You should see something like this when you click on the button beside the bookmark button.
If you wish to open all email links through gmail then set use gmail. Now when you click on mailto button, chrome will automatically opens in gmail.
You can check which program is mapped to handle mailto: links by entering chrome://settings/handlers. It could well be that if the mailto: handler is somehow misconfigured, Chrome silently fails on mailto: links.
More information on handlers, including allowing websites to handle special links is available at http://support.google.com/chrome/bin/answer.py?hl=en&answer=1382847
For what it's worth, mailto: link in the W3Schools example works without problems with Chrome 19.0.1084.41 (Official Build 134854) beta-m and Outlook 2010 under Windows 7 Professional (64-bit).
It happens because your email default program doesn't working correctly.
This fixed mine .. Set your default email reader.
http://see.kirkstrobeck.com/VD7s
It is not because of the Chrome Settings...
Chrome is more specific for the Html and CSS, so your problem is probably that one of your 's is going over the link or image if you're trying to use an image as a mailto command.
Once you are on the page you are trying to make this work right click and choose "inspect element" and check if another element is going over your link...
Then in Css fix that and your mailto link will work...
Hope this helps
website design

Windows 8 + Chrome and broken mailto links

I can't get chrome on windows 8 to open mailto links. They work fine in IE, and they work fine in chrome if the mailto is handled by a website (such as gmail), but I can't get it to work if Outlook is set to handle the uri.
Has anyone else faced this issue?
I'm not certain from the description if the problem you're having is the same that I had, but...
If clicking a mailto: link is bringing Chrome to the forefront but not actually starting a new message in Gmail, then you probably need to set Gmail as the mailto handler within Chrome.
Open Chrome's Settings.
Click "Show advanced settings".
Under "Privacy", click "Content settings".
Under "Handlers", click "Manage handlers".
For the "mailto" Type, set the combo box to "Gmail".
OK, OK, and you're done.
Click a mailto: link to try it out.
You should follow the standard bug investigation/reporting path:
look up a similar issue at http://crbug.com
if none is found, file a
new one at http://new.crbug.com
That said, http://code.google.com/p/chromium/issues/detail?id=62254 looks much like yours.

Mailto links are not working in Chrome

Mailto links are not working at all in Chrome (8.0.552.224).
These links are working in IE 7&8, Safari, and Firefox.
In Chrome, we are clicking on mailto links (we have tested this about 25 times now), and things just go into the ether.
In all other browsers, we click on the mailto links, they open up email clients (gmail, outlook, and others), and we can send the email.
But in Chrome, we click the mailto links and nothing happens...
mailto: links work on chrome, however it won't open a new window with all of the information ready to type up an email unless the user have the plugin that allows for it. If you want to test that the link is working go to your page and right click, you should have an option to copy the email address. Or you can install the plugin Chromemailer.
Update: I'm not sure when, but Google has implemented an update that now opens a window to gmail when you select a "mailto:" link. (presumably only if you are logged into gmail)
It works for me as well:
var url:String="mailto:xxx#yyy.zz?subject=subject?body=message"
navigateToURL(new URLRequest(url),"_blank");