Javascript in page.html:
<script>
   function createDFrame() {
      alert('This is the createDFrame function in the page inserted in the dFrame...')
      mainPage.createDFrame()
   }
</script>