winform webbrowser禁用网页target=blank

/// <summary>
        /// 屏蔽target=_blank 的弹出窗口
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void broMain_NewWindow(object sender, CancelEventArgs e)
        {
            e.Cancel = true;
            broMain.Navigate(broMain.StatusText);
        }

 

posted @ 2013-07-31 23:30  随风ˇ止步  阅读(670)  评论(0编辑  收藏  举报