Dataset to HTML iFrame

What kind of code do i have to put in the iFrame for it to receive the code from the database and postMessage?