Skip to content

Instantly share code, notes, and snippets.

@tomcritchlow
Last active April 19, 2017 00:36
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomcritchlow/493774b09b02e31d1184d7cda926c659 to your computer and use it in GitHub Desktop.
Save tomcritchlow/493774b09b02e31d1184d7cda926c659 to your computer and use it in GitHub Desktop.
<script>
function OpenInNewTab() {
var screenwidth = screen.width-500;
window.open("http://m.me/fiercelycurious", '_blank',"width=500,height=800,left="+screenwidth);
}
</script>
<a href="http://m.me/fiercelycurious" target="_blank" onclick="OpenInNewTab();"> <!-- m.me/facebookpage works for any facebook page -->
<div class="fbmessenger">
<img src="https://lh5.ggpht.com/0VYAvZLR9YhosF-thqm8xl8EWsCfrEY_uk2og2f59K8IOx5TfPsXjFVwxaHVnUbuEjc=w300" /> <!-- I host the file directly but I'm hotlinking from the Google Play store here for the png file -->
<span class="tooltiptext mobilehidden">Message Us</span>
</div>
</a>
@tomcritchlow
Copy link
Author

@blopa
Copy link

blopa commented Apr 19, 2017

Awesome and simples solution. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment