javascript - window.open not working as new tab is undefined -


newtab = window.open('about:blank','_newtab' ); newtab.location.replace = ('http://www.yahoo.com/') 

i need open new tab different domain. following error occured

instance_controller.js:184 uncaught typeerror: cannot read property 'location' of undefined 

why happening? please give solution.

try this:

newtab = window.open('about:blank', '_newtab');    newtab.location = ('http://www.yahoo.com/');


Comments

Popular posts from this blog

ssh - Vagrant Windows - ssh_exchange_identification: read: Connection reset by peer -

gcc - Neither ld wrap nor LD_PRELOAD working to intercept system call -

I could not debug scala remote application on eclipse or IntelliJ IDEs -