כיצד לקבל רכיבי DOM ולשנות פונקציונליות onClick

On addition to looking at the developer guide, you might take a step back and describe what you are trying to do rather than your suggested solution.