diff --git a/password.html b/password.html
index 757a8043..2e67b6b5 100644
--- a/password.html
+++ b/password.html
@@ -80,6 +80,10 @@
};
function outputGeneratedPassword() {
var password = passwordGenerator.generatePassword(getOptions());
+ if (password === '') {
+ alert("Whops. You unselected all the options. I don't know what characters you want. Click on the button entitled \"Advanced Options\" and enable some options and thent try again. Nice one");
+ return;
+ }
$("#password-input").val(password);
}
$(function() {