Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Javascript / Client Side Development

onblur for table


I try to run the following code, but no onblur/onfocus events happen.
Is onfocus/onblur implemented in ie/firefox?

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<form>
<TABLE BORDER="1"
onFocus="alert('This is the Example Table')"
onBlur="alert('This is the Example Table')"
onClick="alert('This is the Example Table')"


<TR>
<TD>Cell Data</TD>
<TD>Cell Data<input type=button value=sometext ></TD>
</TR><TR>
<TD>Cell Data</TD>
<TD>Cell Data</TD>
</TR>
</TABLE>
<TABLE BORDER="1"
onFocus="alert('This is the Example Table')"
onBlur="alert('This is the Example Table')"

<TR>
<TD>Cell Data</TD>
<TD>Cell Data<input type=button value=sometextothertext ></TD>
</TR><TR>
<TD>Cell Data</TD>
<TD>Cell Data</TD>
</TR>
</TABLE>
</form>
</body>
</html>
Mathias Fritsch a crit :

> I try to run the following code, but no onblur/onfocus events happen.
> Is onfocus/onblur implemented in ie/firefox?

focus :
how do you expect to get to keep attention to a whole table ?
does document (or div) accept onFocus ?

and by the fact : how to blur it ... ?

you can have :
window.onfocus();
document.myForm.myElement.onfocus();

Probably that could work :

<table
   onmouseover = "alert('this is a table')"
   onmouseout = "alert('leaving table');">

--
Stephane Moriaux et son (moins) vieux Mac dj dpass
Stephane Moriaux and his (less) old Mac already out of date

On Mar 13, 7:10 am, "Mathias Fritsch" <mathiasfrit@gmx.de> wrote:

> I try to run the following code, but no onblur/onfocus events happen.
> Is onfocus/onblur implemented in ie/firefox?

Yes, but generally only where the W3C HTML 4 specification says they
should be:

<URL: http://www.w3.org/TR/html4/index/attributes.html >

i.e.

 A, AREA, BUTTON, INPUT, LABEL, SELECT, TEXTAREA

Browsers do implement non-standard properties, however even if you
discover a browser that does support focus and blur events for tables,
you've already discovered two popular ones that don't.

Therefore it is not a good idea to attempt to use it.

--
Rob

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc