B
basanistes
Hi,
I have tried several things to get firefox show a bullet list (<ul> when I
click on the list
having
1) <div onclick="javascript....">
2) <a href="javascript:..."
(see full HTML below!)
but in both cases, the swapP function is not triggered.
Why does firefox not bother about this?
<script language="javascript" type="text/javascript">
function swapP(obj)
{var testit = obj.style.display;
if ( testit == undefined) return false;
obj.style.display = testit == 'block' ? 'none' : 'block';
}
</script>
(snippet)
<li>
<a id="_ctl0_content_faqList__ctl1_issue"
href="javascript:swapP(_ctl0_content_faqList__ctl1_answer);">
blah question blah blah ?
</a>
<div id="_ctl0_content_faqList__ctl1_answer" class="answer">
blha blah blah answer
</div>
</li>
(class answer is inside a css where div.answer {display=none;}
I have tried several things to get firefox show a bullet list (<ul> when I
click on the list
having
1) <div onclick="javascript....">
2) <a href="javascript:..."
(see full HTML below!)
but in both cases, the swapP function is not triggered.
Why does firefox not bother about this?
<script language="javascript" type="text/javascript">
function swapP(obj)
{var testit = obj.style.display;
if ( testit == undefined) return false;
obj.style.display = testit == 'block' ? 'none' : 'block';
}
</script>
(snippet)
<li>
<a id="_ctl0_content_faqList__ctl1_issue"
href="javascript:swapP(_ctl0_content_faqList__ctl1_answer);">
blah question blah blah ?
</a>
<div id="_ctl0_content_faqList__ctl1_answer" class="answer">
blha blah blah answer
</div>
</li>
(class answer is inside a css where div.answer {display=none;}