Home  >  Article  >  Web Front-end  >  sharepoint 2013 自定义列表查看页面附件打开新页面方法 dispform attachments open new page_html/css_WEB-ITnose

sharepoint 2013 自定义列表查看页面附件打开新页面方法 dispform attachments open new page_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:03:501374browse

我们在sharepoint的列表中,打开某一条数据,如果那条数据有附件,打开附件的时候,总是会把当前的页面给替换掉。如何在点击附件的时候,打开新页面,可以用一下一段脚本来处理。

        $(document).ready(function () {

            if ($("#idAttachmentsTable") != null) {

                $('#idAttachmentsTabletbody tr td').each(function ()

                {

                    var href = $(this).find('a');

                    href.removeAttr("onclick");

                    href.attr("target", "_blank");

                });

            }

        });

   

 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn