Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

IE 10: Window.open() Javascript method behaves differently in IE 10 browser

$
0
0

It has been observed that the window.open() JavaScript method is behaves differently in IE 10 browser.

Method: Window.opne()

Purpose: To open a page in new browser window.

Syntax:

window.open(URL, name, specs, replace)

Parameter Details:

                URL: URL of the page to open.

                Name: name of the page

                Specs: Comma separated list of items like width, height etc.

                Replace: To add current document in history list or not.

All above parameters are optional.

Detail Analysis:

Following are the detail analysis points of IE8 and IE 10 browser:

Method Scenarios

Behavior in IE 8

Behavior in IE 10

window.open(‘Test.html’, ‘MyPage’, ‘width=200,height=100')

Open page in new browser window. Expected behavior.

Open page in new browser window.

Expected behavior.

window.open(‘Test.html’, ‘MyPage’)

Open page in new browser window.

Expected behavior.

Open page in new browser Tab.

Not Expected behavior.

It should be open in new browser window.

Browser version: Windows Internet Explorer 10 Consumer Preview Version 10.0.8250.0

So in second scenario in case of IE 10, new browser window should be open.

I just wanted to know whether it is a known issue of IE 10 browser? any help in this regard is really appreciated.

Thanks,

Nitin


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>