I have a script showing / hiding a form on a page that seems just fine in Safari 3 but not Firefox:

<a href="javascript:if(document.getElementById('tell_form').style.display =='block'){document.getElementById('tell_form').style.display='none';}else{document.getElementById('tell_form').style.display='block';}">

In firefox it sems to reveal the form then quickly jups to a new page with the script in the address bar.

Can anyone help?

you might wana try adding return false .

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.