# Firefox resets flash because of Javascript

**URL:** https://forum.kirupa.com/t/firefox-resets-flash-because-of-javascript/316279
**Category:** flash
**Created:** [November 17, 2010, 4:36pm UTC](https://forum.kirupa.com/t/firefox-resets-flash-because-of-javascript/316279 "2010-11-17T16:36:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Pafke](https://avatars.discourse-cdn.com/v4/letter/p/5fc32e/32.png) [@Pafke](https://forum.kirupa.com/u/Pafke)
#### Post date: [November 17, 2010, 4:36pm UTC](https://forum.kirupa.com/t/firefox-resets-flash-because-of-javascript/316279/1 "2010-11-17T16:36:39Z")

</div>

Hi,  
Does anyone here know why the following code:

```auto

function test(){ 
document.body.scroll = "";
document.body.style.overflow = "";
}     

```

Makes Firefox reset the entire swf? Apparantly more people have problems with firefox resetting when using certain javascript, but I can’t find out how to fix this. The swf resets when I call to this function from flash.

Any help would be appreciated,  
Thnx
