JHtml.Put_DocumentHtml

 

Prototype

 
( string pHtml, byte pOption=0 ),byte
 

Example Code

 
JHtml1.Put_DocumentHtml('<strong>Hello</strong>')
 

Comments

 
This method inserts html into the current document, at the currently selected location.
 
The pOption parameter determines how the html is inserted, as follows:
 
! Insert html at the current cursor position
JHtml1.Put_DocumentHtml('Hello World!', jHtml:PutHtml_AtCursor)
! NOTE: Rather use the InsertHtml method for this, as follows:
JHtml1.InsertHtml('Hello World!')
 
! Replace the entire contents of the html document, including the header etc.
JHtml1.Put_DocumentHtml('<HTML><HEAD><TITLE></TITLE><STYLE>p {{padding-left: 20px;}</STYLE></HEAD><BODY><P>Hello World!</P></BODY></HTML>', jHtml:PutHtml_ReplaceAll)
 

Example App

 
See the "Demo.APP" example application.