<button onclick="TO();">start</button>
<script type="text/javascript">
function TO() {
return setTimeout(function() {
if (randomSlideId==0) {window.open('https://');};
if (randomSlideId==1) {window.open('https://');};
if (randomSlideId==2) {window.open('https://');};
}, 700);
}
</script>