Javascript Window.open: Accessing DOM -


i have been experimenting window.open popups. have tried following code [with shortened url shown here]:

var sub=window.open('http://youtube.com...','subscribe boss gamerz','height=170,width=390'); sub.document.body.style.overflow = "hidden"; sub.focus(); 

which opens new popup not remove scrollbars intended to. instead, chromium gives me error message in console:

uncaught securityerror: blocked frame origin "http://example.com" accessing frame origin "swappedout://".  frame requesting access has protocol of "http", frame being accessed has protocol of "swappedout". protocols must match. 

how can make function properly?


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -