A Hamilton teenager is in custody after exposing himself to a woman on a city bus and then smashing out a window to try to escape, police say.

It happened on Friday around 2:40 p.m. on an HSR bus in the area of James Street South and Charlton Avenue. That's when a teenager exposed himself to a 39-year-old woman, police say.

Passengers told the driver what happened, and he stopped the bus and called police.

The teen then smashed out a bus window and jumped into the street in an attempt to escape, police say. People who were passing by saw what happened, and held the teen until police could get there.

He was eventually arrested and taken to police headquarters where his bail was opposed. His name can't be released under the youth criminal justice act.

A 16-year-old male has been charged with committing an indecent act and mischief to property under $5,000.