H01H2203/00

Electronic device having antenna

An electronic device includes a printed circuit board (PCB), an antenna and a switch. The antenna is printed on the PCB. The antenna includes multiple key contacts. Each of the multiple key contacts includes a first terminal, a second terminal and a third terminal. The first terminal is an output terminal. The second terminal and the third terminal are connected in series in the antenna. The switch switches the electronic device to an input mode and an antenna mode, thus the electronic device can be alternatively switched to an input function or a communication function.