return to other page html code example Example: html redirect to another page <script> function foo() { window.location.href = url } </script>