[Javascript] Retaining values

Troy III Ajnej trojani2000 at hotmail.com
Fri Apr 15 10:16:27 CDT 2011


Hey Tedd, good work. Yet
seeing this, makes me wonder...
 
---------------------- 8< -------------------
function checkJS()
{
/* if javascript is ON, then make javascript stuff visable
else all javascript stuff is hidden (i.e., display: none) */

document.getElementById('js').style.display = "block";
}
---------------------- >8 -------------------

thankfully it isn't working. 
 
What is this code supposed to do,
cause we don't want people to see our loundry, 
do we?


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               Troy III
      progressive art enterprise
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



> Date: Fri, 15 Apr 2011 00:22:30 -0400
> To: javascript at lists.evolt.org
> From: tedd at sperling.com
> Subject: Re: [Javascript] Retaining values
> 
> To all:
> 
> Many thanks -- I think I figured it out how to add content to HTML 
> without using .innerHTML
> 
> Here's my example:
> 
> http://webbytedd.com/aa/add-text-field/
> 
> The code works when javascript is ON or OFF.
> 
> If anyone has anything to add, please feel free to comment. After 
> all, I am still learning.
> 
> Cheers,
> 
> tedd
> 
> -- 
> -------
> http://sperling.com/
> _______________________________________________
> Javascript mailing list
> Javascript at lists.evolt.org
> http://lists.evolt.org/mailman/listinfo/javascript 		 	   		  


More information about the Javascript mailing list