Steve Torrefranca wrote:
Hi,

How do we prevent form submission?  I have a link that opens a new window:
<t:commandLink value="LINK" onclick="window.open('attachments.xhtml?commEmailID=#{communication.id}')" />

My problem is, that the form that has the link gets submitted to the server as it opens a new link. How do we prevent such behavior?

This is a common javascript problem: add ";return false" to your onclick attribute.

Reply via email to