# alert()

Source: https://findproxyforurl.net/functions/alert/ · last updated 2026-10-11

`alert(message)` → undefined

Debug output from a PAC. Where it goes depends on the engine; remove it from production files.

Not part of the original Netscape API. Engines log it somewhere (or not at all), and an engine
without it throws a ReferenceError, which turns the whole evaluation into an error.

## Example

```js
alert("PAC evaluated for " + host); // remove before deploying
```


## Engine notes

- chromium: Forwarded to the net log (chrome://net-export). (source: code, verified 2026-10-04)
- firefox: Written to the browser console as "PAC-alert: ...". (source: code, verified 2026-10-04)
- pacparser: 1.5.1 and newer print to stderr. (source: code, verified 2026-10-04)
- pacparser: 1.5.0 and older have no alert(), so calling it throws ReferenceError. (source: doc, unverified)
- winhttp: Exists and returns false, with or without arguments; the script continues. (source: lab, verified 2026-10-11)
