Call javascript without clicking