codefossa Posted September 14, 2011 Share Posted September 14, 2011 I'm havin' problems tryin' to get the location of a window I open. I've tried .. var tab = window.open('http://google.com', '_blank'); alert(tab.location); Along with a few other ideas. I know you can change it's location with tab.location = 'http://example.com'; but it don't seem to let me grab the location. Before someone points out how stupid it sounds to grab the location of a window you set the location to, the page I'm using uses a header redirect, and I need to use Javascript to get the new location. It's a script added to each page with Greasemonkey to modify a site I use. Quote Link to comment Share on other sites More sharing options...
nogray Posted September 15, 2011 Share Posted September 15, 2011 You can't do that because the other site is not on the same domain. Browser Security. Quote Link to comment Share on other sites More sharing options...
codefossa Posted September 15, 2011 Author Share Posted September 15, 2011 You can't do that because the other site is not on the same domain. Browser Security. Is it possible to disable though? -Firefox 6.0.2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.