Hello is there's away to use timer and remove the Button

Great alert but some time i don't need the click button to show up , i need something more like toast.
is there away to do it?