answersLogoWhite

0

How can one use JavaScript to open a window?

Updated: 8/20/2019
User Avatar

Wiki User

10y ago

Best Answer

JavaScript contains a function that is specifically written and designed for the purpose of opening a new window. In Javascript, this function is simply called 'open new window'. When this object is initiated, one can determine the properties of the window to be called and open a new window using JavaScript.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can one use JavaScript to open a window?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Which method of the windows object is used to open a new browser window in case of using javascript?

No need to use Java Script or separate browsers. On tabs in one browser click to open new tab and and type in the website. In one browser you can open as many tbs and view as many website at the same time as you like.


How to Run Javascript In Mozilla Firefox?

Many people use Mozilla Firefox as an alternative web browser to Internet Explorer. This program is an open-source program which has made it easy to customize. Javascript is accessible in Firefox, but in order to use it, you will need to ensure that it is turned on. In this article, you will learn the steps that are necessary in order to turn Javascript on in Firefox. 1. The first step you will want to take is to open a Mozilla Firefox window. Once the window has opened, go to the menu bar and select ‘tools.’ 2. Once the ‘tools’ option is open, you will want to find the ‘options’ button. Once you have opened the ‘options’ window, find the tab that reads ‘content’ on it. 3. In the ‘content’ window, you will want to look for the ‘Enable JavaScript’ radio button. This radio button will need to be highlighted in order for JavaScript to become enabled. 4. In this screen, you can also customize your JavaScript capabilities. You are able to customize what JavaScript can and cannot do by selecting the ‘advanced’ button. Once in the ‘advanced’ screen, you are able to select or deselect the options available for JavaScript, so that they are customized to suit your needs. 5. Once you have finished in this screen then click the ‘OK’ button. 6. After you have exited the advanced screen, click the ‘OK’ button at the bottom of the ‘options’ window as well. 7. After you have successfully closed all the screens, JavaScript will now be enabled. Once you follow these steps, turning Javascript on and off in Mozilla Firefox is very easy. You can also follow these steps to customize Javascript to meet the needs of each user as well.


How do you write javascript code to close a browser window?

If you want to close the current window, use window.close() or simply close() If you want to close a window that is stored in a JavaScript variable, apply the method close() to it. For example: var myWindow=window.open("http:\/\/www.example.com/"); myWindow.close();


How do you make a DIV that never leaves the browser window?

You can use 'position:fixed' or you can use javascript to make sure that a div always stays in view inside the client window.


How do you get a webpage to open maximised?

You'll want to use JavaScript. For security reasons, JavaScript has been stopped from doing this without the users permission.


What do robbers use to break open the window?

Robbers use crowbar to break open the window. (Not a chainsaw!)


Where can one find information on implementing a Javascript alert?

You could open a new window instead and set it to a certain size using window.open(). You would have to program a button that closes the window but that is quite easy. You could also insert lots of new lines with '\n' in the alert text, but there's no way to change the width.


Hyperlink through the javascript?

One simple way to involk a URL from within Javascript is to use the location object. For example: 1. Load a new page. <script type="text/javascript"> location.href="http://newpage.htm"; </script> 2. Add a page link to the Open Document. <script type="text/javascript"> documnet.write(location.href="http://newpage.htm"); </script>


How do you close a browser window with HTML code?

You can't do it with HTML code.You can use the Javascript method window.close() but for security reasons, you can only close a window if you opened it with Javascript. For instancevar popUp = window.open('popup.html');(.......)popUp.close();This code isn't worth much, because it's not connected to any event (so it opens a window that it immediately closes) but that's the basic idea.


What attribute will let you open a link in a new window?

You click the link with the left button on your mouse, and then put your mouse on the button that says open link in a new window and click it with the button on the left side of your mouse.For more detail it is simple and easy use right click on a link ,choose option , "Open the link in new tab" ,by doing so your previous page will be before you and a new page will be before you,do not choose the option , "Open link in new window " by choosing this,a new browser window will be appeared before you,which may cause your disturbance.


When more than one window is open the appears on top of all other open windows?

change it in your settings you need to make so a page doesn't open in new window but you should use tabs there side by side


When more than one window is open the appears on the top of all other open windows?

change it in your settings you need to make so a page doesn't open in new window but you should use tabs there side by side