Dragonfish
Programmer
I`m using buttons to cause Javacript to write text (and other things) into <div id="xyz"></div>
function test()
{
document.all["xyz"].innerHTML = "Hallo everybody";
}
This works, but immediatly after writing the text, there is a reset on the site and the text disappears. I can tell there´s a reset of some kind because there is a ticker running independently and it always restarts when function test is finished. The same thig happens when I use alerts to test access to functions:
function test()
{
alert("Function test ok."
;
}
There are no JavaScript error messages. Can anybody tell me why this is happening and how to prevent it.
Thankxx
DavidinGermany
function test()
{
document.all["xyz"].innerHTML = "Hallo everybody";
}
This works, but immediatly after writing the text, there is a reset on the site and the text disappears. I can tell there´s a reset of some kind because there is a ticker running independently and it always restarts when function test is finished. The same thig happens when I use alerts to test access to functions:
function test()
{
alert("Function test ok."
}
There are no JavaScript error messages. Can anybody tell me why this is happening and how to prevent it.
Thankxx
DavidinGermany