PDA

View Full Version : *Another* JavaScript Question


Pauly
November 7th, 2004, 01:52
I've been making a website for Greg of HTH, and ran into a small problem with Firefox.

URL: http://www.hometownservers.com
Code:


// Javascript Document - Written by Paul B. Riddick
// http://www.paulriddick.com
// Do not steal, learn - www.w3schools.com

function openpopup(url)
{
var infopop=window.open(url,"","height=150, width=250, top=250, left=350")
}


Problem: I can click the Apache logo link and the popup appears, but if I do 3 times in a row, the browser crashes. Not sure if this is a Firefox error, or my script causing it to do that, but either way I don't want potential clients to stop visiting the client site because of an error no matter who's responsible.

This is one of my first scripts so I'm assuming it's wrong. I just can't figure out where ...

sonicgroup
November 7th, 2004, 01:55
I'm running Firefox 1.0PR and I just clicked it about a dozen times with no crash or adverse effects of any kind. It's probably isolated to your particular installation (for instance, no matter how many times I reinstall, Firefox always crashes on exit on the Dell I use at work - no idea why, and it doesn't matter which version).

Side note: nice design.

Pauly
November 7th, 2004, 02:02
Yea, against my wishes someone installed SP2 :( I think I'll blame that.

Side note: nice design.

Thank you :) I'll post the finished version in the Feedback Forum for the dogs to attack. Won't be for a couple months though.