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
Post a Comment