Posted By

squaretone on 03/18/09


Tagged

javascript


Versions (?)

Quick output of browser version using both asp and javascript


 / Published in: ASP
 

Super simple output of browser version. Redundantly outputs the same info using both asp and javascript.

  1. <div style="display:block; height:400px; margin:auto; border:1px solid gray; padding:9px; background:#fff">
  2. <%
  3. Dim svars
  4. svars = request.servervariables("http_user_agent")
  5. Response.Write(svars)
  6. %>
  7. <hr />
  8.  
  9. <script type="text/javascript">
  10. document.write(navigator.appVersion);
  11. </script>
  12. </div>

Report this snippet  

You need to login to post a comment.