javascript - Open window in tab of new window -


i want open tab inside opened window. this

(it should open new window "google.co.uk" new tab "google.de"

newwindow = window.open('http://www.google.co.uk', '', 'width=10'); newwindowtab = newwindow.open('http://www.google.de', '_blank'); 

but opens "newwindowtab" in window, code is.

i have tried this, give window time load, until (should) open new tab:

newwindow = window.open('http://www.google.co.uk', '', 'width=10'); settimeout(function() {     newwindowtab = newwindow.open('http://www.google.de', '_blank'); }, 500); 

but get:

error: permission denied access property "open"

i have used firefox. heard might possible in chrome, want use script in firefox.

this not possible, unless window being opened same origin (ie same domain). mdn says this:

the reference can used access properties , methods of new window provided complies same origin policy security requirements.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -