Question: I made a survey and gave to certain user Contribute permission to answer the survey.
Appears that even if you give to user "Read" permissions Action bar is still available.
Is there any chance to hide "Action bar" for limited permission users?

Answer: 
Try using the `onbeforeunload()` function or jQuery [unload()](http://api.jquery.com/unload/)
Not sure jQuery will help you here, but you could try

```
<html>
    <body onUnLoad='alert("Please do not leave!")'>
</html>

```

Should note that this will fire whenever the user tries to leave your page (Refresh or otherwise).