Skip to main content
1 of 10

Result

https://github.com/Kristinita/Kristinita.github.io#donate

Kristinita's Donate Button http://i.imgur.com/v45xXTC.png

Behavior

User click on Donate button → was redirected to Bitcoin-Redirect page in current tab → was opened bitcoin wallet of user → in current tab was opened page, on which Donate button is situated.

Solution

You need use redirects.

Source of Donate button

[**![Bitcoin Donate Button**](http://Kristinita.ru/Donate-files/Bitcoin-Donate-button.png)](http://Kristinita.ru/Donate-files/Bitcoin-Redirect)

If you click the image, you will go to a page http://Kristinita.ru/Donate-files/Bitcoin-Redirect. See answer on Meta Stack Exchange, how use Markdown markup for this construction. Alternative worked HTML source:

<a href="http://Kristinita.ru/Donate-files/Bitcoin-Redirect"><img src="http://Kristinita.ru/Donate-files/Bitcoin-Donate-button.png"></a>

Source of Bitcoin-Redirect page

<script>
window.location.href = "bitcoin:1DF9jgzftTFn4ZnDV2YEjUtZ3uHtBywj57?label=In%20the%20treatment%20of%20Sasha's%20teeth&amount=0.0037";
history.back();
</script>

Use JavaScript methods window.location.href and history.back.

Attribute target not supported

For HTML pages sources may be these:

<a href="http://Kristinita.ru/Donate-files/Bitcoin-Redirect" target="_blank"><img src="http://Kristinita.ru/Donate-files/Bitcoin-Donate-button.png"></a>

<script>
window.location.href = "bitcoin:1DF9jgzftTFn4ZnDV2YEjUtZ3uHtBywj57?label=In%20the%20treatment%20of%20Sasha's%20teeth&amount=0.0037";
close();
</script>

But GitHub as of September 2016 not supported target. See page source in Firebug, not target attribute in source.

Not supported TargetBlank http://i.imgur.com/pCmeYI0.png