Reputation: 6395
I am sending an email that includes a link. When the recipient clicks that link, I'd like the resulting page to come up pop-up (rather than open in a new tab) when clicked.
I'm using Gmail as my reference mail client.
Things I've tried:
target="_blank"
: opens in a new tab, not a pop-up<a onclick="window.open(...)">
: stripped out by gmail.<a href="javascript:window.open(...)">
: stripped out by gmail.onLoad
or similar: pop-up blocked.Most popup-related online resources I've found so far have been quite out of date, but the rule of thumb appears to be "if an event is user-initiated, it will be allowed to open a popup."
Even a partial solution (only works in Chrome/Firefox/Safari/etc) would be better than nothing.
Upvotes: 2
Views: 3301
Reputation: 114377
Almost all mail clients strip out inline JavaScript because it is vector for malware.
You can only include regular links in Emails.
Upvotes: 2