<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>Adding PI after load</title>
  <script>
   var pi = document.createProcessingInstruction("xml-stylesheet", "type='text/css' href='../support/yellow.css'");
   document.insertBefore(pi, document.documentElement);
  </script>
 </head>
 <body>
  <p>If the background is yellow, then the PI was applied.</p>
 </body>
</html>
