Web Analytics Made Easy -
StatCounter Html Window In Html Page - CodingForum

Announcement

Collapse
No announcement yet.

Html Window In Html Page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Html Window In Html Page

    Can anyone help me out?

    Essentially, I want to add a text box to an existing web page that will allow me to enter a block of HTML formatted text that the user can scroll through.

    Is it possible to do this kind of thing? I do recall once seeing a script somewhere that allowed you to view a HTML page embedded inside another. That's the kind of thing I am aiming at.

    Anybody know where I'm coming from here and can help me?!?!

    Thanks in advance...

    R

  • #2
    like this?

    Code:
    <html>
    <head>
    <script type="text/javascript">
    function preview(f){
      var w = window.open("","prevwin","resizable, width=800,height=600");
      w.document.write(f.html.value);
      w.document.close();
      w.focus();
    }
    </script>
    </head>
    <body>
    <form name="myform">
    Enter HTML:
    <textarea name="html"></textarea>
    <input type="button" value="Preview" onclick="preview(this.form)">
    </form>
    </body>
    </html>
    Glenn
    vBulletin Mods That Rock!

    Comment


    • #3
      i think he means an iframe: http://www.devguru.com/Technologies/...ml_iframe.html
      I am the luckiest man in the world

      Comment


      • #4
        Yeah that's the one thanks Roelf... I think anyway... I'll test it out and get back to you...

        Is this script multi browser friendly?!?!?

        R

        Comment

        Working...
        X