Do someting 30 seconds after page load in Javascript

seconds = 30;

var interval = window.setInterval(function() {
	// do your stuff here
}, 1000);

window.setTimeout(function() {
	window.clearInterval(interval);
}, seconds * 1000);