You are here iC Home > Know-how > Programming > JavaScript

Know-how

2.6 JavaScript

11.05.2008

2.5 UML [  up  ] - [ Know-how A - Z ] - [ top ] 2.6.1 base href (since IE7)

DHTML

Works on IE and Firefox:

Expand / Collapse
To remove this text, click link above again.

<B id="size13px" STYLE="cursor:pointer;" onClick="expandIt(elTwo);"><u>Expand /
Collapse</u></B>

<DIV ID="elTwo">
<form>	
<input type="checkbox" name="secure" value="1">
	To remove this text, click link <b>above</b> again.
</form>
</DIV>

<script language="JavaScript">
  elTwo.style.display = "none";
</script>

<script language="JavaScript">
  function expandIt(whichEl) {
	whichEl.style.display = (whichEl.style.display == "none" ) ? "" : "none";
  }
  
  function dynCollapse() {
	elTwo.style.display = "none";
  }
</script>



Stand-alone page: /know how/linux/ files/javascript dhtml



See also:




copyright by reto - created with mytexi