W3C home > Mailing lists > Public > www-html@w3.org > June 2000

event trigger and Netscape

From: Lars <Lars_Reith@bigfoot.de>
Date: Sat, 5 Feb 2000 14:39:04 +0100
Message-ID: <002a01bf6fde$5e4b9de0$0400a8c0@lars>
To: <www-html@w3.org>

I'm designing a web page using JavaScript. When I use Netscape Communicator 4.7 to test the page, it seems that Netscape ignores the event triggers. For example:

<img src="example.gif" width="100" height="30" border="0" alt="" onmouseover="dosomething()" onmouseout="dosomethingelse()">

Netscape would show the picture, but nothing would happen if the mouse scrolls over or out of the picture. This might be caused by the browsers settings, I don't now.

Another problems is, dealing more with JavaScript, that the onload event trigger seemed not to work probably. I wanted to give a variable a value by the moment the page
is loaded:

<script language="JavaScript">
function init()
{infos="Hello there"}    
function writeit()

<input type="button" value="clickme" name="button1" onclick="writeit()">

By clicking the button, a text should appear on the screen reading "Hello there", however, the following error accurs: 'infos' is undefined

Hopefully someone can help me
Received on Saturday, 17 June 2000 06:47:51 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:54 UTC