Change the title of override issue

So as I was working on the javascript, I have to override the title as it was taking the default url instead of the title.

I did some research as I usually do and found a lot of ways to do this. It was working for a short while but when modal popup loaded it was overriding with default URL.

I didn’t give up and still applied different ways. At the end I found a way which worked for me like a charm.

Please find below the code.

var w =, '_blank', 'toolbar=no, location=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=800, height=650');,status=no,resizable=no");
w.onload = function() { this.document.title = "your new title"; }

Hope it will save your precious time.


Posted by | View Post | View Group