

The reasons for this are complexand have mostly to do with preventing errors in various browsers, especially when you want morelinks to lead to the same popup.

In addition, you have to load the window into a JavaScript variable. This name can be used as the targetof a link. You have to give a name to the window (in this case, name). This is a feature, nota bug, so there's little you can do about it. Notethat, if you want to open a page on another server, Explorer will frequently give errors. The page to be opened is passed on by the argument url. Explanationįirst, you open the new window. See below for a far cleaner way of adding popupbehaviour to a link. To create a popup you'll need the following script: This gives several problems, most importantly the confusion over exactly what the URLof the popup is. This site usesthe new system because it's much cleaner than the old one.įinally some notes about writing content directly into the popup. Then a new way of adding popup behaviour to a link.

This small window is popularly known as a popup.įirst the basic syntax of how to create a popup, then an explanation of the script, including a table of the most common arguments you can give to a popup and the problem of focusing. This may be what you want, but at other times a small window on top of the largebrowser window is much better. You can add a TARGET="_blank" to the -tag, but thissimply opens a new browser window that completely obscures the old one. When the user clicks ona link, a new window opens and displays a page. Use it to enable or disable pop-up blocking.Sometimes it's useful to add a popup to your pages. Under General, you'll find the toggle switch for Block Pop-ups.Allow or Block Pop-Ups in Safari on iPhoneĮnabling pop-ups in Safari on the iPhone is easy, and you can do it right from the iPhone's Settings app. So, depending on which browser you use on your iPhone, the steps you need to follow may vary, but we've covered the instructions for the most popular browsers. However, this feature is optional, and you can disable it to allow websites to display their content in pop-up windows.

Almost all of these browsers come with a built-in pop-up blocking feature that blocks all pop-up windows by default. Safari is the default web browser on the iPhone, but you can install and use several other browsers from the App Store too. How to Enable or Disable Pop-Ups in Your iPhone's Browser If you're on an iPhone and stuck in a situation where a website needs to show content in a pop-up window, but your browser can't open it, here's how you can enable pop-ups across different browsers on the iPhone and access its content.
