Re: document outerHTML by Han
Han
Sun Dec 28 04:11:57 CST 2003
If you elaborate more on the purpose of the script posted, someone may help
you with some idea.
"Maria" <no@spam.com> wrote in message
news:OfM$A9NzDHA.1908@TK2MSFTNGP10.phx.gbl...
> Thanks, Guess I'll have to do it this way:
>
> set h=document.createelement("html")
> set d=document.createelement("head")
> set t=document.createelement("title")
> t.innertext="My new Document"
> d.insertbefore t,null
> h.insertbefore d,null
> set b=document.createelement("body")
> b.innerhtml="<p>hello from my new document</p>"
> h.insertbefore b,null
> document.replaceChild h,document.firstChild
>
>
>
>
>
>
> "Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message
> news:utEewlNzDHA.1680@TK2MSFTNGP12.phx.gbl...
> > Maria wrote:
> > > Hi,
> > >
> > > Can anyone tell me if it's possible to write over the IE
> > > document.html.outerHtml as a unit in script..
> > >
> > > Thnx,
> > > Maria
> >
> > From the documentaition found at msdn.microsoft.com/library:
> > The property is read/write for all objects except the following, for
> which
> > it is read-only: CAPTION, COL, COLGROUP, FRAMESET, HTML, TBODY, TD,
> TFOOT,
> > TH, THEAD, TR.
> >
> > So, the answer is "no".
> >
> > Bob Barrows
> >
> > --
> > Microsoft MVP - ASP/ASP.NET
> > Please reply to the newsgroup. This email account is my spam trap so I
> > don't check it very often. If you must reply off-line, then remove the
> > "NO SPAM"
> >
> >
>