
@ndungu, okay, if i were you and i didn't av a lot time laying on my hands, i would adopt JQuery or Mootools and move onto solving other problems. but then again, if you just want to play with jscript, its fun 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