button with no postback? August 11, 2023 by Tarik you need to use return false <button onclick="printElement('content');return false">Print</button>