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!

joh6nn

06-05-2003, 01:12 AM

i'm not sure exactly what you mean; could you give some more details?

frontline

06-05-2003, 07:10 AM

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);