Skip to main content

Style Guide - JavaScript

The most common use of JavaScript (JS) is to add client-side behavior to web pages.  jQuery is a fast, small, and feature-rich JS library.

The VA uses multiple JS and jQuery files to implement the current template for VA web pages.  These are automatically included for all websites that are Electronic Content Management System forms based.

You can access the JS files to determine the styles available to you and include them in custom sites (if needed) as shown below.

<script type="text/javascript" src="https://www.va.gov/va_files/2014/responsive/scripts/jquery-1-10-2.js"></script>
<script type="text/javascript" src="https://www.va.gov/va_files/2014/responsive/scripts/swipe-min.js"></script>
<script type="text/javascript" src="https://www.va.gov/va_files/2014/responsive/scripts/scrollable.js"></script>
<script type="text/javascript" src="https://www.va.gov/va_files/2014/responsive/scripts/left-nav.js"></script>
<script type="text/javascript" src="https://www.va.gov/va_files/2014/responsive/scripts/tabs-library.js"></script>
<script type="text/javascript" src="https://www.va.gov/va_files/2014/responsive/scripts/tabs-accord.js"></script>
<script type="text/javascript" src="https://www.va.gov/va_files/2014/responsive/scripts/accessible2.js"></script>
<script type="text/javascript" src="https://www.va.gov/va_files/2014/responsive/scripts/custom.js"></script>
<script src="https://www.va.gov/va_files/2014/responsive/scripts/externalLinks.js" type="text/javascript"></script>
<script type="text/javascript" src="https://www.va.gov/va_files/foresee/foresee-trigger.js"></script>
<script id="_fed_an_ua_tag" language="javascript" src="https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?ver=true&agency=VA&pua=ua-46839167-1"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
  <script type="text/javascript" src="https://www.va.gov/va_files/2014/responsive/scripts/html5shiv.js"></script>
  <script type="text/javascript" src="https://www.va.gov/va_files/2014/responsive/scripts/respond.min.js"></script>
<![endif]-->
<!--[if IE]>
	<link href="https://www.va.gov/va_files/2014/responsive/styles/ie9all.css" media="all" rel="stylesheet" type="text/css">
<![endif]-->
<!--[if IE 8]>
	<link href="https://www.va.gov/va_files/2014/responsive/styles/ie8.css" media="all" rel="stylesheet" type="text/css">
<![endif]-->
<!--[if IE 7]>
	<link href="https://www.va.gov/va_files/2014/responsive/styles/ie7.css" media="all" rel="stylesheet" type="text/css">
<![endif]-->

Resources

Official VA seal