How to hide navigation bar for popups in javascript?

How to hide navigation bar for popups in javascript?

+3
source share
3 answers
window.open("http://www.google.com", "mywindow", "location=0,toolbar=0");

See this site for more details .

+6
source

The above suggestion should work in most cases.

Beware of using pop-ups at all; they may be blocked by the browser, or the visitor may have determined that their browser opens new bookmark windows instead, causing unexpected results (especially if their tabs open in the background).

Depending on your purpose, you can use jQuery dialog () instead .

+5
source

, . location = 0.

+4

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


All Articles