Get AirMouse

Two parts: the app on your iPhone, and a small free app on the computer it controls. Install both, open the app, click Allow.

The code that pairs the two is a different one: it appears on the computer after you install, never on a web page.