I tried to popup partial view, but its not working ,this is my link

<a id="id1" href="@Url.Action("index", "versus", new { matchid = c.MatchID })" target="_blank" data-toggle="tooltip" data-placement="top" 
                               title="@homeMLName - @awayMLName">
                                @homeMLName - @awayMLName

And this is my script:

 $('a#id1').click(function (event) {
    window.open($(this).attr('href'), '_blank');

It opens a new tab instead of a new window

Recommended Answers

All 2 Replies

It opens a new tab instead of a new window

That's a setting that is in the user preferences for Safari, and probably for other browsers as well.

This was my solution:

<a style="cursor:pointer;" data-toggle="tooltip" data-placement="top" title="@homeMLName - @awayMLName"
                                   onclick="window.open('@Url.Action("index", "versus", new { matchid = c.MatchID})','_blank' 'targetWindow', 'menubar=no,scrollbars=yes,resizable=yes, width=600, height=650'); return false;">
                                    @homeMLName - @awayMLName
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.