I made quite popular UserJS for Facebook, but since FF 3.6.13 version it doesn't work (for that version). I just have no idea how can I click such elements:

```
<input value="Accept" type="submit" name="something... asdf" />

```

? Clicking such buttons with mouse redirects to another page.

What my script does is searching for such elements with Xpath and then clicking them with simple `acceptbutton.click();`

It works great on Opera, Chrome and FF <3.6.13 , but in newest version nothing happens. I tried also both fireEvent and eventFire functions which I've found here on stackoverflow and which help me often, but this time they can't.

Probably using JQuery's `click()` function would help ,but I cannot use jquery in my userjs.

I tried also `acceptbutton.form.submit();` but it redirects me to wrong page.

Edit :

Ok i am adding code fragment

```
                 var acceptbuttons = xpath(document,'//label[@class="uiButton uiButtonConfirm"]/input');
        for (var i = 0; i < acceptbuttons.snapshotLength; i++) { 
        //will search for particular accept button
            var acceptbutton = acceptbuttons.snapshotItem(i);
            var acceptbuttonName = acceptbutton.getAttribute("name");

            if(acceptbuttonName.indexOf(urlPart)!=-1)
            {
            // it founds button but function below do nothing in FF
            acceptbutton.click();return;
            }
        }

```

Thanks for any help!