The chief executive of Volkswagen has quit over the emissions software scandal in which a device fitted to the cars fooled testers into believing they met stringent environmental standards.

Martin Winterkorn fell on his sword after it emerged that 11 million vehicles worldwide might have been fitted with the tehnnology, but denied that he was 'aware of any wrongdoing on my part.'

It is still not known whether Volkswagen vehicles involved in the US diesel emissions scandal are on Britain's roads.

A lawyer warned British motorists could take legal action against the company for mis-selling them over-polluting cars.

The Environmental Protection Agency (EPA) in the US said cars had been fitted with sophisticated software to switch engines to a cleaner mode when they are undergoing official emissions testing.

This so-called "defeat device" allows the cars to produced nitrogen oxide pollutants at up to 40 times the legal standard once on the road.

Mr Winterkorn said in a statement: "I am shocked by the events of the past few days. Above all, I am stunned that misconduct on such a scale was possible in the Volkswagen Group.

"As CEO I accept responsibility for the irregularities that have been found in diesel engines and have therefore requested the supervisory board to agree on terminating my function as CEO of the Volkswagen Group.

"I am doing this in the interests of the company even though I am not aware of any wrongdoing on my part."

Mr Winterkorn added that VW needed a "fresh start" and his resignation was "clearing the way" for that to happen.

He said he was "convinced" that the company would "overcome this grave crisis".

New York attorney general Eric Schneiderman said he would collaborate with other US states to enforce consumer and environmental law.

Mr Schneiderman said: "No company should be allowed to evade our environmental laws or promise consumers a fake bill of goods."

Other states are also looking at filing class action suits against the world's biggest car-maker and, according to reports, the US Department of Justice (DoJ) is looking into the issue, which raises the possibility of the company and individual executives facing criminal charges.

In the past the DoJ has often extracted hefty payments from companies to settle criminal charges.

It is not known whether the scandal affects cars on Britain's roads, but campaigners have demanded that the process for testing vehicles is made more stringent.

Tim Barlow, air quality expert at the Transport Research Laboratory, said Europe's laboratory system, which dates back to 1996, needs bringing up to date.

He said: "Current testing methods are outdated and offer room for error or optimisation, so it's imperative that industry, governments and regulatory bodies work together to find the best way forward.

"Ideally we need to move towards a testing model that's based on real driving emissions, carried out with vehicles operated on normal roads."

Details of a real driving emissions test incorporating modern technologies and on-road conditions are being discussed by the industry and the European Commission.

It has been proposed that the test is introduced in 2017, but UK Transport Secretary Patrick McLoughlin has written to the European Commission to call for it to be introduced as soon as possible in the wake of the VW scandal.

He wrote: "The UK is committed to delivering cleaner air for our citizens and a key element of this is setting the correct standards for new cars at EU level.

"The UK has pressed for the earliest introduction of the new real driving emissions test and the current issue reinforces my view that we must finalise these measures urgently and so set a clear obligation for vehicle manufacturers."

The Society of Motor Manufacturers and Traders (SMMT) issued a statement which said the industry "accepts that the current test method for cars is out of date" and is seeking agreement with the European Commission for a process that "embraces new testing technologies and which is more representative of on-road conditions".

Jacqueline Young, head of group litigation at law firm Slater and Gordon, claimed the legal impact could be huge if UK cars are found to have been fitted with the "'defeat device" software.

She said: "If the Volkswagen scandal applies to cars in the UK then this has the potential to be one of the largest group action lawsuits this country has seen. Quite simply it could be the car manufacturer's Libor scandal."

Since the scandal broke on Monday, Volkswagen has lost around one third of its value, or 26 billion euro (£19 billion).

Stocks in rival European large carmakers such as Germany's Daimler and BMW have also fell.