Sumaira Maqsood Ali <sa**@purdue.edu> writes:
I wanted to know if OnClick can be used outside forms also?
like can plain text have the OnClick event handler associated with it?
That depends on the browser.
I tested this code:
<p onclick="alert('foo');">text</p>
in my browsers, and it works in IE6, Mozilla Firebird 0.6 and Opera 6+.
It didn't work in Netscape 4.
/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.'