Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<html>
<script>
const imgOutsideMap = document.createElement('img');
imgOutsideMap.className="img-outside-map";
imgOutsideMap.setAttribute('usemap', '#map2');
document.documentElement.appendChild(imgOutsideMap);
const map = document.createElement('map');
map.setAttribute('name', 'map2');
document.documentElement.appendChild(map);
const imgInsideMap = document.createElement('img');
imgInsideMap.className="img-inside-map";
imgInsideMap.setAttribute('usemap', '#map2');
imgInsideMap.style.visibility = 'collapse';
map.appendChild(imgInsideMap);
</script>
</html>