Radiofrequency attenuator and method. The attenuator includes a pair of transparent windows. A chamber between the windows is filled with molten salt. Preferred molten salts include quarternary ammonium cations and fluorine-containing anions such as tetrafluoroborate (BF.sub.4.sup.-), hexafluorophosphate (PF.sub.6.sup.-), hexafluoroarsenate (AsF.sub.6.sup.-), trifluoromethylsulfonate (CF.sub.3SO.sub.3.sup.-), bis(trifluoromethylsulfonyl)imide ((CF.sub.3SO.sub.2).sub.2N.sup.-), bis(perfluoroethylsulfonyl)imide ((CF.sub.3CF.sub.2SO.sub.2).sub.2N.sup.-- ) and tris(trifluoromethylsulfonyl)methide ((CF.sub.3SO.sub.2).sub.3C.sup.- -). Radicals or radical cations may be added to or electrochemically generated in the molten salt to enhance the RF attenuation.