"Dave" <no@dsfg.vb> writes:
This way to start a function works with IE; why doesn't it work with NS (7).
Why should it?
Because Mozilla (which Netscape 7 is based on) follows the ECMAScript
standard for syntax, and what you have written isn't correct.
<input type="button" id="test">
<script>
<script type="text/javæscript">
if you want to write HTML 4.
function test.onclick()
You can only write an identifier as a function name:
function testOnclick(){
You can then assign that to test.onclick either with a later
test.onclick = testOnclick
or directly with an anonymous function
test.onclick = function () {
/L
--
Lasse Reichstein Nielsen -
lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'