Window.location error

I have this problem, I can’t get the url of a window I open.

If I use


I get the result, but when I execute


or others, nothing comes back to me, what can I do?

I see the error in catch and its a message :

domexception: permission denied to access property "document" on cross-origin object

I work in local with xampp, maybe It this the problem… Can u Help me pls

    var win =, "authwindow", 'width=800, height=600');
        var pollTimer = window.setInterval(function () {
            try {
                if (win.document.URL.indexOf(CLIENT_REDIRECT) != -1) {
            } catch (e) { }
        }, 500); 

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.