I am attempting to write a bit of text over a current web site according to set up cookie is placed. The cookie part works fine, however the document.write causes the written text to look on the new blank page.
I suppose I have to make use of a z-index in some way, but can't appear to have it to operate. If a person could let you know that I recieve my 'document.write' line to appea on the top from the items that already is available around the page, I'd be really grateful. All this is going on on the page on the joomla site, and also the code is incorporated in the php apply for among the modules. Thanks all.
Take advantage of.
[cde] ought to be prevented.
It's couple of (perhaps) valid use cases, which can be used inline inside a
document.write() element and performed because the page is loaded.
If you use it past the page load, it'll unconditionally call [cde] that will obvious your page.
You need to favour modern standardised DOM techniques.
I believe you need to define a component inside your Markup, in which the message ought to be added.
So that you can just add your Message in to the "message"-div:
Assign your body an ID, for example 'body', then make use of the following:
<div id="wrapper"> <div id="message"></div> <div id="content"> ... </div> </div>
W3 Schools includes a good example of it.