After returning to Malaysia in 1973, Salleh taught English literature at the University of Malaya, before becoming a freelance writer in 1983. He was also a columnist for the New Straits Times in the 1980s and 1990s. His works include Sajak-Sajak Salleh – Poems Sacred and Profane and The Amok of Mat Solo. His work often employed apparent profanity and blasphemy to criticise contemporary political and religious ideologies in Malaysia; in 1974 he publicly urinated at an art exhibition in response to what he saw as its pretentiousness. An essay written by Salleh explaining his rationale for this 'performance art' was later included in texts on art history.