script works only when alert is called

Printable View