# Lightbox

Lightbox is a type of format. Designers can create two different designs like a Fully Fluid Format and a Lightbox Format. This allows showing completely two different designs based on a certain event.

There are two ways of opening a Lightbox:

* Adding a click action from the editor.
* Using the Radical API to open the Lightbox format.

There are two ways of closing a Lightbox:

* Adding a click action from the editor.
* Using the Radical API to close the Lightbox format.

When a Lightbox Format is opened, it triggers the `onAdRender` function. If you need to access the Lightbox instance, you can use the `onAdRender` function after opening it.

Here is an example of how to access the Lightbox instance:

Inside the `onAdRender` function:


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.responsiveads.com/developers/lightbox.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
