Home  >  Article  >  Web Front-end  >  Native JS operates the web page to add onclick events to the p element and change the color of the table every other row_javascript skills

Native JS operates the web page to add onclick events to the p element and change the color of the table every other row_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:11:331155browse
1. Add onclick events to all p elements in the web page:
Copy the code The code is as follows:

<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>


Insert title here