New Twist on Back Button Question

Hey all, I’ve put a button in my swf to take the user out of my site and back to the search engine (or wherever they came from), and I searched kirupa and came up with:
[AS]on (release) {
if (_root.y != 1) {
getURL(“javascript:history.go(-2)”, “_self”);
}[/AS]

I put -2 because there is a flash detection page before the page with the swf. But, here is the weird part… it only works the second time it is clicked. You click it once, and nothing happen, but if you click it again, it takes you back to the correct page, weird! I am not too up on Javascript, so I was hoping someone could point out my mistake :slight_smile: Please go HERE to view the site, thanks in advance for your help!

PS, any comments on the site would be appreciated too :beam:

EDIT: obviously, the “about:” is supposed to be javascript
EDIT: oh screw it, you know what im trying to say :trout:

[offtopic]
is that your page, or are you making it for someone?
jw, cuz eyedoctors r cool… lol
[/offtopic]

[offtopic]Heh, I am a multi-talented eye-doctor :wink: jk, I am just making the website for them :)[/offtopic]

try -3 instead of -2.

Thanks for the idea dPimp, but it doesn’t help, changing to -3 just goes one page farther back on the second click.

hey i had the same sort of problem with going back just once! i found that i had to click the button twice to be able to go back just once, and if i set it to -2 then it would go back twice which i didnt want. Annoying problem !!!

Chris