attachObject

adds a DOM element to the popup

void attachObject(string|HTMLElement obj);

Parameters

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