I have the event onClick=window.location.href = 'some url stored in div
.
Div
contains images as well as text.
I want to show preview using this div
, but want clicking disabled on this div
because it is taking to the specified location.
I tried it like this:
("#preview").disabled= true;
("#preview").disabled= 'disabled';
("#preview").children().disabled= true;
("#preview").children().disabled= 'disabled';
But none of this is working in firefox 3.6
. Somebody please help to solve this problem.