Search code examples
javascripturlinternet-explorer-11

Trouble opening a encoded URL with the javascript method window.open() using Internet explorer.


Trouble opening an encoded URL with the javascript method window.open() using Internet Explorer. I have a Url: 'http://test.aspx?someparam=somevalue&para_new=somevalue'. When opening the URL the new IE tab has replaced the &para_new with a paragraph character instead of being the &para_new parameter (http://test.aspx/?someparam=somevalue¶_new=somevalue). This works fine using Chrome. Any help would be appreciated.


Solution

  • Please use window.open('http://test.aspx?someparam=somevalu&para_new=somevalue')

    Change & to &

    Ref link