The invention relates to the technical field of WEB development and application, in particular to a web version type method for freely switching computer cameras. The method comprises the steps that 1, a required label is defined in a page; 2, information of available multimedia input and output equipment on a computer is collected; 3, information of the computer cameras is added into an option; 4, parameters and methods (callVideo) for calling the cameras are defined; 5, media information is obtained again when the option of the computer cameras is changed, and the cameras are called. According to the method, the problem that users need to close operations of redundant computer cameras by themselves under the condition that a computer is provided with multiple cameras is solved, the workefficiency is improved, and the web version type method which is convenient to use, efficient and friendlier to the users and used for freely switching the computer cameras is provided for clients.