99% of the population isn't that logical draco... lol Most just see some annoying error on the browser and ignore it. I've seen how people treat any software by having to actually teach people on site how to use various things. If anything out of the ordinary happens, they usually give a blank stair like the computer has anally violated them or something.
For any popup, I would suggest (especially for today's auto popup blockers) using the "onclick" method. For instance:
Edited: This method along with the actual java script would avoid the popup blocking ability of the onload method. Just use a simple link for the information. To add another window, add another function and call it another name - makewin2. To have a window with scroll bars and such, make the value from 0 to 1
Code: Select all
// Window 1;
function makeWin(url, p_Width, p_Height) {
agent = navigator.userAgent;
windowName = "Sitelet";
params = "";
params += "toolbar=0,";
params += "location=0,";
params += "directories=0,";
params += "status=0,";
params += "menubar=0,";
params += "scrollbars=0,";
params += "resizable=0,";
params += "width=100,";
params += "height=100";
// close the window to vary the window size
if (typeof(win) == "object" && !win.closed){
win.close();
}
win = window.open(url, windowName , params);
if (agent.indexOf("Mozilla/2") != -1 && agent.indexOf("Win") == -1) {
win = window.open(url, windowName , params);
}
if (!win.opener) {
win.opener = window;
}
// bring the window to the front
win.focus();
}
Code: Select all
<a href="javascript:makeWin('http://yourdomain.com/winpop1.html')">Link</a>