code: function(contentHTML) {
  
          if (contentHTML != null) {
              this.contentHTML = contentHTML;
          }
         
          if ((this.contentDiv != null) && 
              (this.contentHTML != null) &&
              (this.contentHTML != this.contentDiv.innerHTML)) {
         
              this.contentDiv.innerHTML = this.contentHTML;
         
              if (this.autoSize) {
                  
                  //if popup has images, listen for when they finish
                  // loading and resize accordingly
                  this.registerImageListeners();
  
                  //auto size the popup to its current contents
                  this.updateSize();
              }
          }    
  
      }
docs: Method: setContentHTML
  Allows the user to set the HTML content of the popup.
  
  Parameters:
  contentHTML - {String} HTML for the div.