Yes, the alarm will continue to run in the background, even if you switch to another tab or minimize your browser, as long as the tab remains open.