HTML map - area

I’m new here and sorry if this is not the right place to ask this question.

I have an image which I want to make clickable: ie when a user clicks on some part of the image it should call some Javascript function, when he clicks on some other part of the image it should call some other JS function and so on.
In <map…><area … I can use only href="… which points to some url. Is it somehow possible to make it call my JS function?

Thanks in advance!

I believe the <area> tag inherits all of the standard event attributes, so you should be able to set onclick to call a JS function.

Yes, it works :slight_smile:
As I’ve already said, I’m completely new here :slight_smile:
Thank you very much!