DHTMLX Docs & Samples Explorer

attachObject(obj)

adds a DOM element to the pop-up window

  • obj - (string or object) a DOM element or its ID
<div id="myObj" style="display:none;">any custom text here</div>
 
<script>
     var myPop = new dhtmlXPopup(...);
     myPop.attachObject("myObj");
</script>

Related resources