asp.net mvc - ActionLink How to open new windows without toolbar and menue with specific size? -


hi cannot figure out how open new plain browser window without browser controls , specific dimensions. tried following doesn't work, more accurately still opens regular browser window controls.

@html.actionlink("new window", "index", new {controller="controller"}, new { target= "_blank, toolbar=0, location=0, menubar=0 " }) 

i'd have use javascript in order so:

<script>      function openinnewwindowwithsettings()      {          window.open('@url.content("~/yourcontroller/yourpage")',target = '_blank', width = '1000px', height = '800px');                                //options:                                  //fullscreen = 'yes',                                  //height = '800px',                                  //left = '20px',                                  //location = 'no', //address field                                   //menubar = 'no',                                  //resizeable = 'yes',                                  //scrollbars = 'yes',                                  //status = 'yes', //status bar                                  //titlebar = 'yes',                                  //toolbar = 'yes',                                  //top = '20px',                                   //width = '1000px'        }  </script>
<a href='javascript:openinnewwindowwithsettings();'>link opens in new window</a>

then

return redirect(_linktoyoururl); 

in mvc controller.

or insert url in html link above.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

mysql - Pass value between different pages (form) with PHP -