If something happens accidentally, it happens by chance or as the result of an accident, and is not deliberately intended.. An unexpected happening, often harmful, causing injury etc.
According to several sources, both spellings of the word are correct and okay to use.. Idiom accidentally on purpose (definition of accidentally from the cambridge advanced learner's dictionary & thesaurus ©.