[thelist] javascript with opera
Vincent Birebent
vincent.birebent at ohmforce.com
Mon Mar 12 13:25:35 CST 2001
Hi,
I have some troubles using javascript with opera browsers (for advanced
stuff like using DOM).
In particular, I didn't find how to write something within a layer as I do
with IE or NS, see below :
<head><script language=JavaScript>
var ie = (document.all) ? true : false; var ne = (document.layers) ? true
: false; var ns6 = (document.getElementById) ? true : false;
function init()
{
if (ne) {
document.Test.document.write('Final text');
}
else if (ie) {
Test.innerHTML = 'Final text';
}
else if (ns6) {
document.getElementById("Test").innerHTML = 'Final text';
}
}
</script></head>
<body onLoad="init();"><div id="Test">Text to be changed</div></body>
Any idea of how to do that ?
BTW, have got some nice url to deal with opera and javascript (for advanced
use) ?
Thanks.
Vincent Birebent
Ohm Force
vincent.birebent at ohmforce.com
http://www.ohmforce.com
More information about the thelist
mailing list