can i have an onclick event on a imagemap area element

前端 未结 7 1130
死守一世寂寞
死守一世寂寞 2020-12-03 09:52

I would like to put an onclick event on an area element. Here is my setup:



        
相关标签:
7条回答
  • 2020-12-03 10:52

    This is a simple one:

    <area class="blue" onclick="alert('test');" shape="poly" coords="2318,480,1510,1284" href="#">
    Or for any other code:

    <area class="blue" onclick="//JavaScript Code//" shape="poly" coords="2318,480,1510,1284" href="#">

    0 讨论(0)
提交回复
热议问题