foreach (var item in Model.Items.OrderByDescending(a => a.PublishDate)) { lebel = "New"; bool ismatch = CommonFunctions.KeyWordsMatches(item, KeyWordsArray, LebelsArray, _settings.Value); if (ismatch) { syndicationItemList.Add(item); window.open("@item.Links.FirstOrDefault().Uri", '_blank'); } @rowCount - @item.Title.Text.ToString() "color: rgba(255, 0, 0, 1)"> @timeAgo <div id="demo_@rowCount" class="collapse"> <p>Link: <a href="@item.Links.FirstOrDefault().Uri.AbsoluteUri" target="_blank">@item.Links.FirstOrDefault().Uri.AbsoluteUri</a></p> <p>Publish Date: @item.PublishDate.ToString()</p> <p>Description: @Html.Raw(item.Summary.Text)</p> </div> }
Quote:Modern browsers have strict popup blocker policies. Popup windows must be opened in direct response to user input, and a separate user gesture event is required for each Window.open() call. This prevents sites from spamming users with lots of windows. However, this poses an issue for multi-window applications. To work around this limitation, you can design your applications to: * Open no more than one new window at once. * Reuse existing windows to display different pages. * Advise users on how to update their browser settings to allow multiple windows.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)