# How to create popup from this link?

**URL:** <https://forum.kirupa.com/t/how-to-create-popup-from-this-link/197390>\
**Category:** flash\
**Created:** [August 15, 2006, 11:27pm UTC](https://forum.kirupa.com/t/how-to-create-popup-from-this-link/197390 "2006-08-15T23:27:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![HekG](https://avatars.discourse-cdn.com/v4/letter/h/73ab20/32.png) [@HekG](https://forum.kirupa.com/u/HekG)\
**Post date:** [August 15, 2006, 11:27pm UTC](https://forum.kirupa.com/t/how-to-create-popup-from-this-link/197390/1 "2006-08-15T23:27:00Z")

</div>

Hello all,

This piece of code opens a jpg in a new browser window when clicked but I would like to be able to have it create a small popup window with the jpg instead.

The jpg name is contained in an xml file so the link appears on a text link not on a button and I can’t use on(press) commands it has to be ahref. Any suggestions? Thanks

```auto
montheventspanel = montheventspanel+unescape("<font color=\'#FF0000\'><b>"+currAttribs.day+" "+"</font>"+"<font color=\'#FFFFFF\'>"+currAttribs.title+"</b><br><font size=\'-2\' color=\'#999999\'>"+currEventset.childNodes[j].firstChild.firstChild.nodeValue+"</font><br><a href=\'http://"+currAttribs.link+"\' target=\'_blank\'><font size=\'-2\' color=\'#999999\'>[<font color=\'#CC0000\'><u>VIEW FLYER</u></font><font color=\'#999999\'>]</font><br><br></font></a>");

```
