Re: SizeToContent for IE

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"Csaba Gabor" <danswer@xxxxxxxxx> wrote in message
news:70352af4-f1ff-470b-83f4-c9f7af9a3b8e@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

'Render page. BODY element => messy. Must be better way
ie.document.parentWindow.execScript( _
"document.write(""" & bodyHTML & """);document.close()")
'ie.document.body.scroll = "no"

Have you considered just creating a new body element and then
replacing the old body node with the new body element and set body
attributes as desired?
To see the technique in action, try the sample JScript here; it is
easily ported to VBScript.
http://msdn2.microsoft.com/en-us/library/ms536719(VS.85).aspx

I get confused by the terminolgy; I don't understand what the
difference is between an HTML element and an HTML node.

-Paul Randall


.



Relevant Pages

  • Re: SizeToContent for IE
    ... Have you considered just creating a new body element and then ... replacing the old body node with the new body element and set body ... bodyHTML used to start with <form ... ...
    (microsoft.public.scripting.vbscript)
  • Re: SizeToContent for IE
    ... Paul Randall schrieb: ... Have you considered just creating a new body element and then replacing the old body node with the new body element and set body attributes as desired? ... I get confused by the terminolgy; I don't understand what the difference is between an HTML element and an HTML node. ...
    (microsoft.public.scripting.vbscript)
  • Re: window.onclick in IE and Gecko agents
    ... HTML 4.01 does not specify an onclick attribute for the HTML element, the body element would be a more suitable location. ...
    (comp.lang.javascript)