# A href="event: opens a popup

**URL:** <https://forum.kirupa.com/t/a-href-event-opens-a-popup/305458>\
**Category:** Uncategorized\
**Created:** [February 25, 2010, 7:02pm UTC](https://forum.kirupa.com/t/a-href-event-opens-a-popup/305458 "2010-02-25T19:02:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tcoulson](https://avatars.discourse-cdn.com/v4/letter/t/a587f6/32.png) [@tcoulson](https://forum.kirupa.com/u/tcoulson)\
**Post date:** [February 25, 2010, 7:02pm UTC](https://forum.kirupa.com/t/a-href-event-opens-a-popup/305458/1 "2010-02-25T19:02:15Z")

</div>

as the title of this goes, I am calling to an event through xml and htmlText, then using TextLink event inside of Flash to fire a function. This all works, but it pops up an empty browser window. How can I prevent the browser window from opening up?

The text in xml is:

```auto
<a href='event:displayEmail'>Share with a colleague</a>

```

Then inside my class:

```auto
frame2.buttonOne.addEventListener(TextEvent.LINK, displayEmail);//inside another method

private function displayEmail(e:TextEvent):void{
            trace(e.text);
            if(e.text == "displayEmail"){
                addChild(email);
                TweenLite.to(email, .7, {alpha:1, ease:Quart.easeOut});
            }
        }

```

TIA :fab:
