This would be a breach of contract and the employer has the right, although it rarely happens, to sue for damages in a civil court, or to withold payment for the period of notice which you would have otherwise worked.
Just One More Click: Doggy drama about staying safe online at work.