# Turn infobox off and on with javascript

**URL:** <https://community.cesium.com/t/turn-infobox-off-and-on-with-javascript/9061>\
**Category:** CesiumJS\
**Created:** [February 11, 2020, 4:26pm UTC](https://community.cesium.com/t/turn-infobox-off-and-on-with-javascript/9061 "2020-02-11T16:26:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jerrold\_Siegel](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/jerrold_siegel/32/3077_2.png) [@Jerrold\_Siegel](https://community.cesium.com/u/Jerrold_Siegel)\
**Post date:** [February 11, 2020, 4:26pm UTC](https://community.cesium.com/t/turn-infobox-off-and-on-with-javascript/9061/1 "2020-02-11T16:26:34Z")

</div>

**1. A concise explanation of the problem you’re experiencing.**

When an entity is selected, besides the location rectangle the info box appears. I would like to be able to select whether or not this happens with javascript, sometimes yes and sometimes no.I have not been able to find appropriate the API documentation.

**2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.**

**3. Context. Why do you need to do this? We might know a better way to accomplish your goal.**

**4. The Cesium version you’re using, your operating system and browser.**

I am using the most recent.

---

<div class="post-metadata">

**Author:** ![Ruediger\_Brand](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ruediger_brand/32/4004_2.png) [@Ruediger\_Brand](https://community.cesium.com/u/Ruediger_Brand)\
**Post date:** [July 22, 2021, 3:39pm UTC](https://community.cesium.com/t/turn-infobox-off-and-on-with-javascript/9061/2 "2021-07-22T15:39:53Z")

</div>

Do you find a solution - i would like to have this function too

---

<div class="post-metadata">

**Author:** ![janine](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/janine/32/5135_2.png) [@janine](https://community.cesium.com/u/janine)\
**Post date:** [July 23, 2021, 3:44pm UTC](https://community.cesium.com/t/turn-infobox-off-and-on-with-javascript/9061/3 "2021-07-23T15:44:08Z")

</div>

This question was answered here.

> [@inputAction on left Mouseclick shows InfoBox - can I prevent?](https://community.cesium.com/t/inputaction-on-left-mouseclick-shows-infobox-can-i-prevent/14125):
>
> I have the problem, that I setInputAction on left mouse click. I would like to do something with the coordinate, but at this moment the show of infobox is a problem. Can I prevent showing InfoBox on a special setInputAction ? I don’t find a possibility in the viewer options and my dataset, which is click is a 3dtiles set, for which I also don’t find a switch Rüdiger
