contenteditable element prevents hyperlink default behavior

Posted by user352208 on Stack Overflow See other posts from Stack Overflow or by user352208
Published on 2010-05-27T17:16:32Z Indexed on 2010/05/27 17:21 UTC
Read the original article Hit count: 212

Filed under:
|
|

I've got the following problem. In IE if a contenteditable element is nested inside a hyperlink, clicking on the element prevents the hyperlink default behavior, i.e. navigation to another document. In FF it works fine. How can I solve the problem? Just removing the contentEditable attribute is not a solution since I want this behavior (navigation to another document) only when user clicks the content-editable element with pressed Ctrl key.

Thanks.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html