Hi,
I need to be able to change href inside <area> by clicking a link.
Here is my code :
function clearit() {
document.mymap.innerHTML = "<area shape='rect' coords='170,11,242,61' nohref>";
}
<map name="mymap">
<area shape="rect" coords="14,244,66,298" href=http://www.webdeveloper.com/forum/archive/index.php/"#" onClick="slideit(3)" alt="" >
</map>
<a href="#" onClick="clearit()">set_NOHREF</a>
So, if I click the set_NOHREF link, the "mymap" area will be UNCLICKABLE by setting "nohref". But my code gave me error. Anyone know how to implement this?
Thanks.
I need to be able to change href inside <area> by clicking a link.
Here is my code :
function clearit() {
document.mymap.innerHTML = "<area shape='rect' coords='170,11,242,61' nohref>";
}
<map name="mymap">
<area shape="rect" coords="14,244,66,298" href=http://www.webdeveloper.com/forum/archive/index.php/"#" onClick="slideit(3)" alt="" >
</map>
<a href="#" onClick="clearit()">set_NOHREF</a>
So, if I click the set_NOHREF link, the "mymap" area will be UNCLICKABLE by setting "nohref". But my code gave me error. Anyone know how to implement this?
Thanks.