Hot dogs are a traditional part of Fourth of July celebrations. Evil Mad Scientist Laboratories explains how to cook your weiners in a thoroughly unsafe way. Or you could just read about it.
While we could give you lots of warnings about all the different dangers involved and how to possibly skirt them, the simple truth is that this just isn't safe. If you are foolish enough to attempt this, you will have to deal with pointy things, raw electricity out of the wall, hot steam, and the possibility of fire. If that isn't enough, and you succeed, you are still faced with the possibility of having to eat a hot dog. In summary: do not, under any circumstances, cook hot dogs this way.