# Flash and javascript history.go trouble

**URL:** https://forum.kirupa.com/t/flash-and-javascript-history-go-trouble/67775
**Category:** Uncategorized
**Created:** [October 19, 2004, 3:38pm UTC](https://forum.kirupa.com/t/flash-and-javascript-history-go-trouble/67775 "2004-10-19T15:38:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![fade011](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@fade011](https://forum.kirupa.com/u/fade011)
#### Post date: [October 19, 2004, 3:38pm UTC](https://forum.kirupa.com/t/flash-and-javascript-history-go-trouble/67775/1 "2004-10-19T15:38:44Z")

</div>

hi

i´m working on a site wich has some flash menu  
i need to make a button tell the browser to make the classic back navigation but wont work

tried writing javascript in actionscript at flash

[color=seagreen]on (press) { getURL (“javascript:history.go(-1)”); }[/color]

or calling a function from flash to the asp page and got no answer (no error warning or any browser response)

[color=seagreen]on (press) { getURL (“javascript:goback()”); }[/color]

im sure the function code is working because if i call it from a button or an href at the page it works fine  
[color=#2e8b57][/color]  
[color=#2e8b57]function goback() { javascript:history.go(-1) }[/color]

got some other javascript functions like one for printing and another for closing a window wich was open with javascript and i call em from flash and work fine, but found trouble with this one

any help would be apreciated

seeya, sol
