• Home
  • Jobs
  • Courses
  • Questions
  • Teachers
  • For business
  • ES/EN

0

23
Views
window.open popup without toolbar and UI parts

I am trying to make a popup that is a new browser window, so I can change tabs and still have this popup. I want it to be with a minimal UI (toolbars, menubars, addressbar, etc). I tried something like that:

window.open('test.html', 'popup', 'left=100,top=100,width=320,height=320,popup=1,toolbar=0,scrollbars=0,status=0,location=0')

But it still show the UI. Is there any way to create new window without the UI?

about 1 month ago ·

Juan Pablo Isaza

1 answers
Answer question

0

I tested your code and mine with Opera and it didn't change anything. But on Safari and Chrome I managed to get a minimal UI. Here's what I used:

<!DOCTYPE html>
<html>
<body>

    <p>Click the button to open a new window with some specifications.</p>

    <button onclick="myFunction()">Try it</button>

    <script>
        function myFunction() {
            window.open("https://www.google.com", "_blank", "toolbar=no, location=no, directories=no,status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=yes, width=600, height=600");
        }
    </script>
</body>
</html>

about 1 month ago · Juan Pablo Isaza Report
Answer question
Find remote jobs
Loading

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post job Plans Our process Sales
Legal
Terms and conditions Privacy policy
© 2022 PeakU Inc. All Rights Reserved.