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

Re: event trigger and Netscape

From: Frank Schnappenberger <schnappenberger@triple-i.de>
Date: Sat, 17 Jun 2000 15:32:10 +0200
Message-ID: <000001bfd89f$902f93a0$db3706d5@frank>
To: "Lars" <Lars_Reith@bigfoot.de>, <www-html@w3.org>
Hello Lars,

Netscape allows MouseOver events only in the following tags:
<a> <area>

The problem in the other script is, that you must call the init() function, before
you call the writeit() function.

Frank
  ----- Original Message ----- 
  From: Lars 
  To: www-html@w3.org 
  Sent: Saturday, February 05, 2000 3:39 PM
  Subject: event trigger and Netscape


  Hi,

  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:

  <html>
  <head> 
   <title>Onload</title>
  <script language="JavaScript">
  function init()
  {infos="Hello there"}    
  function writeit()
  {document.writeln(infos)}
  </script>
  </head>

  <body>
  <form>
  <input type="button" value="clickme" name="button1" onclick="writeit()">
  </form>
  </body>
  </html>

  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 17:03:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:43 GMT