Best practices for using window.open ()

I am working on a web application where it would be helpful if some links open new windows with a minimal browser. It is very likely that the user will want to display them side by side or tiled on the screen. (Think about text editors, file system navigation, or end windows.) I know that it was common practice that very day, but I wonder if the tabs that are so common have changed now and the overall working model of the network has changed a bit. .

  • Are there any recommendations for opening or closing new windows?
  • Is there any browser incompatibility that I should be aware of?
  • Is there anything in the window that I should not change using javascript? EG: window size, removal of certain chrome elements, etc.
  • Anything else that comes to mind?
+3
source share
1 answer

I know it was a common practice that day

In fact, I see how this happens when web applications begin to take on the roles of traditional desktop applications.

Are there any recommendations for opening or closing new windows?

As long as you use them for the right purpose, you should be fine. Never surprise the user / open windows unexpectedly.

Are there any browser incompatibilities that I should be aware of?

Not all browsers will respect all the window features that you request. For example, Firefox will always show the address bar, even if you ask not to.

- , javascript? E.G.: , ..

. .

+5

Source: https://habr.com/ru/post/1775770/


All Articles