Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

How do I use "window.open" to open a new window with a menubar?

  • Không có trả lời
  • 1 gặp vấn đề này
  • 3 lượt xem
more options

menubar no longer shows in a new window opened with window.open? I am running Firefox Ver. 79.0 (64-bit); Mozilla Firefox for Ubuntu canonical - 1.0; on Ubuntu Bionic 18.04 I use the following javascript code in <head> to open a new window: <script> </script> The body is as follows: <body bgcolor="#F2E8DE" onLoad="nameThisWindow()">

Click <a href="javascript:openHomePage()">Open Homepage</a> to open Homepage.htm in a new Window. </body> This code will not display the menubar in the new window (HomePage). The new window opens, resizes, relocates, has scrollbars, has address bar and has the [Open menu] option to the right of the address bar. The way it should except for the menubar on my desktop computer. If I right click on [Open Menu] in the new window it shows a check mark before Menu Bar. If I uncheck it, it closes the menubar in the window that opened it (HomePageCaller). If I click on Customize in HomePage, it opens the customize window in a new Tab in HomePageCaller. If I open a link in HomePage with "Open Link in New Tab" it opens the link in HomePageCaller. If I open a link in HomePage with "Open Link in New Window" it opens the new window with a menubar like it should. I have opened about:config to change all nine of the "dom.disable_window_open" options to "false" and restarted the computer. This did not change anything? I have removed all content from the<head> except the <title> in the new window page. I have removed all content from the <body> except a line that says it is the new window. All to no avail. Thank you for any help someone can provide, Rob

menubar no longer shows in a new window opened with window.open? I am running Firefox Ver. 79.0 (64-bit); Mozilla Firefox for Ubuntu canonical - 1.0; on Ubuntu Bionic 18.04 I use the following javascript code in <head> to open a new window: <script> <!-- function openHomePage() { var HomePage, url = "file:///home/rob/Documents/Webpages/Homepage/homepage.htm"; HomePage = window.open(url, "", 'fullscreen=0, location=yes, menubar=yes, resizable=yes, scrollbars=yes, status=yes, titlebar=yes, toolbar=yes, replace=yes, left=720, top=70, width=1200, height=870'); } function nameThisWindow() { this.focus(); self.name="HomePageCaller"; } //--> </script> The body is as follows: <body bgcolor="#F2E8DE" onLoad="nameThisWindow()"> <p>Click <a href="javascript:openHomePage()">Open Homepage</a> to open Homepage.htm in a new Window. </body> This code will not display the menubar in the new window (HomePage). The new window opens, resizes, relocates, has scrollbars, has address bar and has the [Open menu] option to the right of the address bar. The way it should except for the menubar on my desktop computer. If I right click on [Open Menu] in the new window it shows a check mark before Menu Bar. If I uncheck it, it closes the menubar in the window that opened it (HomePageCaller). If I click on Customize in HomePage, it opens the customize window in a new Tab in HomePageCaller. If I open a link in HomePage with "Open Link in New Tab" it opens the link in HomePageCaller. If I open a link in HomePage with "Open Link in New Window" it opens the new window with a menubar like it should. I have opened about:config to change all nine of the "dom.disable_window_open" options to "false" and restarted the computer. This did not change anything? I have removed all content from the<head> except the <title> in the new window page. I have removed all content from the <body> except a line that says it is the new window. All to no avail. Thank you for any help someone can provide, Rob

Được chỉnh sửa bởi Rob vào