Αποτελέσματα Αναζήτησης
The open() method opens a new browser window, or a new tab, depending on your browser settings and the parameter values.
- Try It Yourself
The W3Schools online code editor allows you to edit code and...
- Opener
W3Schools offers free online tutorials, references and...
- JS Window
The window object is supported by all browsers. It...
- Try It Yourself
26 Ιουλ 2024 · The open() method of the Window interface loads a specified resource into a new or existing browsing context (that is, a tab, a window, or an iframe) under a specified name. Syntax js
3 Ιαν 2013 · Use window.open(): <a onclick="window.open(document.URL, '_blank', 'location=yes,height=570,width=520,scrollbars=yes,status=yes');"> Share Page </a> This will create a link titled Share Page which opens the current url in a new window with a height of 570 and width of 520.
11 Οκτ 2024 · Learn about the Window interface, including its properties and methods, specifications and browser compatibility.
The window object is supported by all browsers. It represents the browser's window. All global JavaScript objects, functions, and variables automatically become members of the window object. Global variables are properties of the window object. Global functions are methods of the window object.
Browsers open a new tab by default, but if sizes are provided, then it’ll be a popup window. The popup may access the opener window using the window.opener property. The main window and the popup can freely read and modify each other if they have the same origin.
7 Νοε 2023 · The window.open() method in JavaScript allows developers to open popup windows and new browser tabs/windows programmatically. It has been around for many years and remains widely supported across major browsers.