barq said the following on 8/10/2006 4:43 PM:
I'm using image in an anchor tag as a submit button.
We use
document.images['img_name'].parentElement.removeAttribute('href') in a
javascript
function to make a image button non-clickable (not-hyperlink). How do
we make it
clickable again (have a hyperlink).
Hmmm. Did you try setting it's href property?
But, trying to remove it's href property is a dumb way to try to make a
link non-clickable. Set it's onclick property to return true/false.
--
Randy
comp.lang.javascript FAQ -
http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/