# Hide Flash Element



The method **`FB.Canvas.hideFlashElement()`** hides the HTML element passed in via the `elem` param from view.

Developers should use this function within their [hideFlashCallback()](https://developers.facebook.com/docs/games/gamesonfacebook/optimizing#handlingpopups) function to hide the element as soon as possible.  Since Facebook will call this function `200ms` later, and the implementation may change, using it is the only way to guarantee forward compatibility.

## Example {#example}

```
var element = document.getElementById('myGreatFlashObjectElement');
FB.Canvas.hideFlashElement(element);
```

## Parameters {#params}

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `elem` | Object | no | HTML Element to be hidden, generally a Flash Object element. |