-
JavaScript Cross-window Communication
The Same Origin policy restricts the windows access to one another. That means, if a user has opened two pages: the first one from daivd-brown.com and the second one – gmail.com, then they couldn’t want a script from daivd-brown.com for reading a mail from gmail.com. The purpose of such a policy is to protect users from information theft. Describing the Same…
-
JavaScript Popups and Window Methods
One of the oldest methods of showing an additional document to the user is a popup window. Here is an example of running a popup window: Running the code above will open a new window with a particular URL. Modern browsers are configured for opening new tabs instead of separate windows. The initial idea of…