How do I close a Safari alert that's taller then the screen?
Sorry, but there are very few things you can do:


Force restart safari and hope it doesn't re-open this page. 
Try disabling Wi-Fi and keep pressing enter.


Also, I believe the latest Safari updates contain a fix for this type of malware.