Thursday, May 26, 2011

userAgent object

The userAgent object returns the user agent headers sent by the server.

Browser support: all
TheMadScript version: 2.0.0

As with all objects, use JavaScript operators (unless there is no other text) to insert the userAgent object into your text-writing coding. This is just one way:

box_alert("User agent headers: "+userAgent);

No comments:

Post a Comment