

The url we're using is passed to the function when we call it, so that this function can be used for any number of different popups (though the height/width and other options will always be the same unless you modify the function to take more arguments). This method then takes three arguments: the address of the new page, the name of the window, and a third argument which can hold some, few, or less optional attributes of the window, such as the height and width which I've defined in this case. We load the new window (created with the window.open() method) into a variable. The HTML for that link simply called the function with the URL of the page we want to pop up as an argument. This will open the specified url in a new, downsized window, the dimensions of which are set down in the function. We're simply defining a new JavaScript function, which we can pass different URLs to each time. To get a rudimentary page to pop up off your main page on command from a link, you'll need the following JavaScript code and JavaScript link: However, if you want more control over this new window, you will need to use some JavaScript code. This will open the new page in a new window, and is perfect for most people’s needs. Step 1: Navigate to the page/folder you wish to add to the popup window.Opening new windows is easy enough in plain old HTML, using the target attribute on your links, like so:

Here is how a popup appears on your webpage: It saves you time and effort from creating a separate page.ĭisplays the information in the same window, keeping the users focussed Instead, this new pop-up window is safe and secure and uses a small piece of JavaScript that will open a page with a specific window width and height. These are not the old-school pop-up windows we all used to fear, the ones that triggered pop-up blockers. In the ProProfs Knowledge Base, you can add a popup by copying the code snippet of the selected page and pasting it into the source code of your webpage. Popup lets you display information from an external webpage to your webpage in a new web browser pop-up window.
