Skip to content Skip to sidebar Skip to footer

How To Open A New Browser Window With The Navigation Bar Enabled?

I have this JS method: function OpenLink(strDestination) { var features = ['left=10', 'top=10', 'location=0', 'menub

Solution 1:

You can do this:

functionOpenLink(strDestination)
{
   var features = ['left=10',
                'top=10',
                'location=0',
                'menubar=0',
                'resizable=0',
                'scrollbars=1',
                'status=0',
                'titlebar=0',
                'toolbar=0',
                'width=' + window.innerWidth - 500,
                'height=' + window.innerHeight - 150];

   window.open(strDestination, "a", features.join(','));
}

Solution 2:

This simple code open a new window with navigation enabled and with 200 width , 100 height:

functionmyFunction() {
     var myWindow = window.open("", "", "width=200,height=100");
}

Post a Comment for "How To Open A New Browser Window With The Navigation Bar Enabled?"