<html> <body> <style id="myStyle" type="CSS2"></style> <button onclick="alert(document.all.myStyle.type);">style sheet</button> </body> </html>