Heidel
If it's stupid but works, it isn't stupid.
Генерация исключения throw


Вариант с try/catch

@темы: Javascript, Javascript Учебка