Check documentation for the latest version of dhtmlxSuite attachObject DHTMLX Docs

attachObject

adds a DOM element to the popup

void attachObject(string|HTMLElement obj);
objstring|HTMLElementdocument id or object

Example

<div id="myObj" style="display:none;">any custom text here</div>
 
var myPop = new dhtmlXPopup(...);
myPop.attachObject("myObj");

Details

display:none will be removed automatically, used to keep element invisible while it's not attached

Back to top