document.currentScript returns the <'script> element whose script is currently being processed.
Test your Web App on LambdaTest
With LambdaTest you can test your website on 2000+ browser and OS combinations for cross browser compatibility issues and ensure that your webpage fallbacks are working fine on browsers that do not support
BROWSER SUPPORT FOR
Chrome 4 to 28 does not support
Document.current Script property. Chrome 29 to 67 supports
Document.current Script property.
Document.current Script is not supported by Mozilla Firefox browser version 2 to 3.6.
Document.current Script is supported by Mozilla Firefox browser version 4 to 61.
IE browser version 6 to 11 doesn't support
Safari browser version 3.1 to 7.1 doesn't support
Document.current Script. Safari browser version 8 to 11.1 supports
Microsoft Edge browser version 12 to 17 supports this property
Opera version 10.1 to 15 doesn't support
Document.current Script. Opera version 16 to 53 supports
Information sourced from
"Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.
Other Browser Elements and Properties
All websites and webapps use collections of a lot of browser technologies and elements. Not all of these elements are supported by all browsers and browser versions. At LambdaTest you can test your website on all browsers and browser versions and easily debug browser compatibility issues in real time.
Fastest Way for Cross Browser Testing
You can test your website for cross browser compatibility across all Firefox browser versions using LambdaTest
Perform cross browser testing of your website/ webapp across all Chrome browser versions using LambdaTest
Check your website on all Safari browser on Mac and Windows for cross browser compatibility with LambdaTest
Perfrom cross browser testing of your website/ web app across all IE verions using LambdaTest
Our plans starts with a free plan where you access to all features and free 60 minutes of live testing per month.
Need support for a larger team? We have very flexible plans and if they don’t suffice, leave us a message here, and we would help you out.