Skip to main content
Source Link
Clyde Lobo
  • 1.4k
  • 14
  • 13

Javascript

Fiddle : http://jsfiddle.net/RU2kA/1/

Code should be run from a html page enclosed within the script tag that has a type attribute

var x = document.querySelector("script");alert(x.type.split("/")[1]); 

  
Post Made Community Wiki by Clyde Lobo