send cancel click to javascript