Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AOL Browser

Status
Not open for further replies.

ADLawley

Vendor
Jan 12, 2003
1
DE
Hi,
is there anyway, using JS that i can ask if the browser is AOL? I've used to normal check if its NS or IE but was wondering if its possible for AOL too?
Any help would be greatly appreciated.
Cheers,
AD
 
Yup. Just look for an instance of AOL within the agent string:
Code:
<script>
<!--
onload = getBrowser;

function getBrowser() {
	agent = navigator.userAgent.toLowerCase();
		if (agent.indexOf(&quot;aol&quot;) != -1) {
			alert(&quot;Using AOL&quot;);
		}
}
//-->
</script>
To see the source for the &quot;Ultimate Browser Sniffer&quot; (written by Netscape), go here:

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top