Home >Web Front-end >HTML Tutorial >sharepoint 2013 custom list view page attachments open new page method dispform attachments open new page_html/css_WEB-ITnose
When we open a certain piece of data in the sharepoint list, if that piece of data has an attachment, the current page will always be replaced when the attachment is opened. How to open a new page when clicking on an attachment can be handled with a script.
<script></p> <p> $(document).ready(function () {</p> <p> if ($("#idAttachmentsTable") != null) {</p> <p> $('#idAttachmentsTabletbody tr td').each(function ()</p> 🎜> <p> href.removeAttr("onclick");</p> <p> href. 🎜> </p> }<p> </p> });<p> </p> </script>