Patent attributes
The present invention is to provide a magnetic lock mountable on an electronic device, which comprises an upper and a lower magnetic plates respectively formed on an upper and a lower housings of the electronic device, enabling the electronic device to be automatically locked due to the attraction between a plurality of magnetic members disposed on the corresponding positions of the upper and lower magnetic plates having different polarities when the upper housing is covered the lower housing. Alternatively, when the upper magnetic plate is moved a predetermined distance, the corresponding magnetic members on the upper and lower magnetic plates are in turn having the same polarity to repel with each other, enabling the upper and lower housings of the electronic device to be automatically unlocked.