An onto function is a function in which every element in the range is assigned to by at least one element in the domain. For example, the function f(x) = x^2 is onto, as every element in the range is assigned to by at least one element in the domain.