How can I check if a post is dirty using javascript on the edit post screen?

How can I check if a post is dirty using javascript on the edit post screen?

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)