Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Sep 2002
    Posts
    143
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how can i append script value into script element ?

    hello
    im creating/appending objects ot my page with simple createElement() / appendChild()
    now i like to append the script element and then fill the function itself as the script element value(or something like that...)
    i dont sure if this is the right way to do this ..
    thanks!

  • #2
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72 W. 48' 57" , 41 N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    i'm not sure exactly what you mean; could you give some more details?
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

  • #3
    Regular Coder
    Join Date
    Sep 2002
    Posts
    143
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hi
    well what i mean is this :
    say i have this script :
    var o = window.createPopup();
    var oD = o.document;
    var oB = o.document.body;
    oB.style.backgroundColor="beige"
    var b =oD.createElement("button")
    b.value="test";
    -------------------------------------------------------------------------------------------------------------------------------
    and here i like to implant script object with (of course...) js function to
    be part of the new window document so my question is what is the best way to add it
    to the new created page
    ---------------------------------------------------------------------------------------------------------------------
    oWinBody.appendChild(b);
    oWin.show(0, 26, 202,200,document.body);


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •