Web Analytics Made Easy -
StatCounter Other windows... - CodingForum

Announcement

Collapse
No announcement yet.

Other windows...

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

  • Other windows...

    Greetings.

    I would just LOVE to spend ANOTHER 4 hours trying to figure this out, or go through another 4 tutorials that lead me nowhere (not), but instead, I've come HERE for help.

    I want something VERY simple.
    I want a button, that when clicked, opens another window and in that window, I want the contents of a textbox on the first window, as HTML!

    Possible?

    Here's how I've got it, and it no worky (bare with my poor skills, I was only going by common knowledge):


    function preview()
    {
    var previewbody = window.document.done.complete.value;

    window.open('test.html','testwindow','height=440,width=600');

    testwindow.document.write(previewbody);
    }

    <form name=done>
    <textarea rows=30 name="complete" style="width=100%">
    </textarea>
    </form>

    <input type="submit" value="Preview" onclick="preview();"



    Any help would be appreciated.
    Bored? Might as well play Fantasian Kingdoms: http://www.fantasiankingdoms.com/

    Check out my JavaScript Image Project: https://www.codingforum.net/showthread.php?t=185231

  • #2
    By golly yur a genius! (it worked)

    And to think, 20 minutes here would have done it, compared to 4 hours of searching... -_-
    Bored? Might as well play Fantasian Kingdoms: http://www.fantasiankingdoms.com/

    Check out my JavaScript Image Project: https://www.codingforum.net/showthread.php?t=185231

    Comment

    Working...
    X