javascript - Want to display HTML code for websites upon click a banner image -
i want display banner html code in popup websites when click on banner.
for example banner is
<img src="https://myweb.com/images/banners/1.gif">
i want display following data in popup on clicking banner image.
<a href="myweb.com" target="_blank"><img src="https://myweb.com/images/banners/1.gif" border=0></a><br>[url=https://myweb.com] [img]https://myweb.com/images/banners/1.gif[/img] [/url]
i don't have knowledge how issue can solved. please me in solving problem.
thanks
if looking display static text in popup, confirm or alert prompt work e.g:
<a href="myweb.com" target="_blank" onclick="showhtml()"> <img src="https://myweb.com/images/banners/1.gif" border=0> </a> <script> function showhtml(){ alert("<img src=\"https://myweb.com/images/banners/1.gif\" border=0>"); } </script>
Comments
Post a Comment