title: Automatically update references to other headings on a webpage
body: <p>I have been searching around for quite a while on ways to do this, and I'm beginning to think it's not doable.  I can't say I'm an expert in html or CSS, but I have done a lot of research and found no tutorial for this specific problem.</p>
  
  <p>I am coding a software user's guide to be posted online.  The guide will include screenshots of the software, with figure numbers.  The original code (I'm not the first on this project) simply hardcodes in the numbers of each image, which becomes more and more tedious as more information is added in.</p>
  
  <p>I know there is a way to simply add in a new image and then tag the caption to include an automatically incrementing figure number. This would be very helpful, for if a new figure is added in, the numbers automatically change in all of the figures after the new one.</p>
  
  <p>IF that were the only facet of the problem, I would simply use a CSS counter and be done with it.  However, I also want to be able to reference specific figures in the text of the guide.  My question is this:  Is there a way to do this in CSS?</p>
  
  <p>An example of text within the guide would be "<strong>Figure n</strong> shows the dialog box for customizing x."  Is there a way to reference the nth figure in the guide without hardcoding the numbers?</p>
  
  <p>If this is not possible in CSS, is there another language that can do it?</p>
  
  <p><strong>Edit:</strong>  To clarify:  The figures themselves would be labeled consecutively.  But if I wanted to, within my text, refer to Figure 3, for example, that could be anywhere.</p>
  
  <p><strong>Edit 2:</strong>  I have tried a javascript implementation using arrays.  However, now it seems that some versions of Internet Explorer refuse to show the script portions of my code.</p>
  
  <p>I am using the <code>&lt;script&gt;&lt;/script&gt;</code> tags within the body of my document, calling a javascript function located in the head.  I know the syntax must be right because firefox and google chrome both load the page just fine.  Is this simply IE being picky about something?  (I checked, it's not my security settings).</p>