# Call javascript function?

**URL:** https://forum.kirupa.com/t/call-javascript-function/311345
**Category:** Uncategorized
**Created:** [July 3, 2010, 2:46pm UTC](https://forum.kirupa.com/t/call-javascript-function/311345 "2010-07-03T14:46:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Soledad](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@Soledad](https://forum.kirupa.com/u/Soledad)
#### Post date: [July 3, 2010, 2:46pm UTC](https://forum.kirupa.com/t/call-javascript-function/311345/1 "2010-07-03T14:46:25Z")

</div>

hello everybody

I put this javascript in me new blog

```php

<script language="javascript" type="text/javascript">
function showAlert() {
 alert('Hello World - this is an alert message!');
}
</script>

```

and wanna call it anywhere not inside the blog using flash

for example : I wanna make a flash and embed it to any website  
in this flash a button with geturl to call that function

I did this but it failed :

```php

btn.onRelease = function () { 
getURL('javascript:baseURL("http://engnajjar.blogspot.com/") & showAlert()')
}

```

please help me

thanks
