Web API --- Experience DOM manipulation

Experience DOM manipulation

 

1.

<-! HTML Code -> 
  < the INPUT of the type = "the Button" value = "bullet box" onclick = "Alert ( 'ha ha, I become beautiful')"  />

 

 

2.

  < The INPUT of the type = "the Button" value = "display" the above mentioned id = "btn"  /> 
  < Script > 
    document.getElementById ( " btn " ) .onclick =  function () { 
      Alert ( " ha ha, I become beautiful " ) ; 
    }; 
  </ Script >

 

Guess you like

Origin www.cnblogs.com/jane-panyiyun/p/11981451.html