Hi,

Is it possible to write some text at the bottom of what is already on the
page so I can flash a message for example. If I use document.write it wipes
the whole page and starts again at the top.

Dave

RE: How can I write some text? by tlavedas

tlavedas
Tue Oct 05 11:01:01 CDT 2004

I use document.insertAdjacentText (or insertAdjacentTextHTML, as
appropriate), as in ...

document.insertAdjacentText "BeforEnd", "An important Message goes here!"

You can create a 'replacable' message instead by adding a <div
id=Messages> </div> somewhere in your document and use the Messages.innerText
or innerHTML to add the text.

Tom Lavedas
===========

"Dave" wrote:

> Hi,
>
> Is it possible to write some text at the bottom of what is already on the
> page so I can flash a message for example. If I use document.write it wipes
> the whole page and starts again at the top.
>
> Dave
>
>
>

Re: How can I write some text? by rickety

rickety
Tue Oct 05 11:49:25 CDT 2004

The following is an example of some bits from an hta that I have. It is
one way of doing what you want. You may also be able to write to the
StatusText property of the IE object which is the bottom of the IE
window.

Create a named <div> that always positions itself at the bottom of the
page. Here is an example with a separate style but you could also put
the style information as part of the <div>. If you use a smaller
screen, you may need to make the height a direct size (like x pixels)
rather than a percentage.

<head>
<style type="text/css" media="screen">

DIV.FootBlk {POSITION: absolute; BOTTOM: 0%; LEFT: 0%;
height:3%; width:100%; }

</style>
</head>
<body>

<div id="Footer" class="FootBlk"></div>

</body>

Then use the following instead of your "document.write"

Footer.innertext = "Here is a status message"

I believe that should do it for you. As I said I have things like this
that work, and hope that I've extracted sufficient for you to get the
gist.