
change the substring to 0,8 On Mon, Nov 15, 2010 at 11:33 AM, ndungu stephen <ndungustephen@gmail.com>wrote:
@Jamo It still doesnt work on Chrome and Mozilla; have you tried it ?
====
<HTML> <HEAD> <TITLE>Cross Browser alert</TITLE> <script language='javascript'> M=false; N=false; app=navigator.appName.substring(0,1); if (app=='N') N=true; else M=true; function go() { if (M) alert(Pred.style.color); if (N) alert(document.ids['Pred'].color); } </SCRIPT> </HEAD> <BODY onload="go();"> //function is called <P ID="Pred" STYLE="color:red">This is Red</P> </BODY> </HTML>
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- * If the human brain were so simple that we could understand it, we would be so simple that we couldn't. - Emerson M. Pugh *