开发者

asp.net-mvc jquery dialog url with target=_blank doesn't work

I have a jQuery dialog showing a few items, with a link to open the item's order in开发者_运维技巧formation in another window. This works fine on a regular view, but when I use target=_blank on a jQuery modal dialog, it does not open another browser window and instead navigates the page under the dialog to the URL.

Any ideas how to work around this, to get a popup from a jQuery dialog? Thanks!


Try using the JavaScript window.open() method instead. A sample usage would be like this:

window.open("http://www.mydomain.com", "mywindow")

You can view some documentation here: http://www.javascript-coder.com/window-popup/javascript-window-open.phtml.

This should give you the functionality you are looking for.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜