In jazz harmony, a secondary dominant is any dominant seventh chord which occurs on a weak beat and resolves downward by a perfect fifth. Thus, a chord is a secondary dominant when it functions as the dominant of some harmonic element other than the key's tonic and resolves to that element. This is slightly different from the traditional use of the term, where a secondary dominant does not have to be a seventh chord, occur on a weak beat, or resolve downward. If a non-diatonic dominant chord is used on a strong beat, it is considered an extended dominant. If it doesn't resolve downward, it may be a borrowed chord.