Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="col-md-3 white">
- <div class="options">
- <a id="emailRandomiser" href="#" class="hvr-grow">
- <h2>check your emails</h2>
- </a>
- </div>
- </div>
- var pages = ["another-day.html", "not-julie.html", "the-kitchen.html", "reception.html"];
- document.getElementById("emailRandomiser").addEventListener("click", function() {
- window.location.href = pages[Math.floor(Math.random() * 4)];
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement