hi,

when a tab of a tabbox is clicked, it gets highlighted. However i do not
want this to happen. So i put a function on the onclick event on the tab box
that sets the 'selected' attribute of the tab to false.
My XUL is as follow:

<tabbox orient="vertical" id="tabbox1">
<tabs orient="horizontal">
<tab id="t1" label="Hello" selected="false" onclick="deselect()"/>


My function is as follows:

function deselect()
{
 var t = document.getElementById("t1");
 t.setAttribute("selected",false);
 return true
}

however this does not wrk ,i.e. after the script executes the tab element is
still highlighted.
Any idea why this happens? And how do i cause the tab element to remain
disabled even after its clicked on?

thanx



Reply via email to