Quick output of browser version using both asp and javascript


/ Published in: ASP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.