# Javascript call not working in Safari

**URL:** <https://forum.kirupa.com/t/javascript-call-not-working-in-safari/201216>\
**Category:** flash\
**Created:** [September 19, 2006, 2:59pm UTC](https://forum.kirupa.com/t/javascript-call-not-working-in-safari/201216 "2006-09-19T14:59:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MDiddy](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@MDiddy](https://forum.kirupa.com/u/MDiddy)\
**Post date:** [September 19, 2006, 2:59pm UTC](https://forum.kirupa.com/t/javascript-call-not-working-in-safari/201216/1 "2006-09-19T14:59:24Z")

</div>

I have a dynamic text field where I create an html link based on a couple of pieces of data.

Here’s an example of the code for the link:

```auto
var aTag:String = "<p class = 'landing'><a href=\"javascript:openVidPlayer('/vidplayer.html?video="+sel.v_id+"&category="+sel.cat+"');\" target = '_parent'>"+sel.ttl+"</a></p>";

```

My problem is that the popup works fine in Windows IE, Mac/Win Firefox just fine. It won’t work in Safari. It shows as link, but when you click, nothing happens. Can anyone think of a reason why this wouldn’t work?

I also have an onPress handler on a movieclip that won’t work in Safari:

```auto
main_mc.onPress = function() {
		getURL("javascript:openVidPlayer('/vidplayer.html?video=" + sel.v_id + "&category=" + sel.cat + "');", "_parent");
	};

```
