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

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -