call JS function ("this" context)
Here
this
means the object being clicked
<a class="view_all" onclick="consoleLogMe(this);" href="javascript:">object being clicked</a>
this
means the global object
window
in this example:
<a class="view_all" href="javascript:alertMe(this)">window object</a> 
by Valeri Tandilashvili
4 years ago
JavaScript
DOM
0
Pro tip: use ```triple backticks around text``` to write in code fences
0
Giorgi Ivanidze 4 years ago
codepen linki miabi ra
REPLY