Open an HTML scrip in a new tab?
Posted: Wed Mar 16, 2022 4:33 pm
I have some html code which I have been given (see below). When I execute it in an HTML object, it works fine apart from 2 issues:
1. The resultant button is quite small
2. The script opens a new web page in the same tab - I would like it to open in a new tab.
Can anyone help me with either (or both) of these issues?
The code is
Thanks
Alan
1. The resultant button is quite small
2. The script opens a new web page in the same tab - I would like it to open in a new tab.
Can anyone help me with either (or both) of these issues?
The code is
Code: Select all
<div id="CAFDonateButtonContainer"></div> <script type="text/javascript"> var caf_BeneficiaryCampaignId=20130; document.write(unescape('%3Cscript id="CAFDonateButtonLoader_script" src="https://cafdonate.cafonline.org/js/CAF.DonateButtonLoader_script.js" type="text/javascript"%3E%3C/script%3E')); </script>
Alan