Total Pageviews
Friday, June 26, 2009
How to detect browser using JavaScript
var isIE = false;
var isFF = false;
var isOP = false;
var isSafari = false;
function DetectBrowser()
{
var val = navigator.userAgent.toLowerCase();
if(val.indexOf("firefox") > -1)
{
isFF = true;
}
else if(val.indexOf("opera") > -1)
{
isOP = true;
}
else if(val.indexOf("msie") > -1)
{
isIE = true;
}
else if(val.indexOf("safari") > -1)
{
isIE = true;
}
}
Subscribe to:
Post Comments (Atom)
Blog Archive
Ideal SQL Query For Handling Error & Transcation in MS SQL
BEGIN TRY BEGIN TRAN --put queries here COMMIT; END TRY BEGIN CATCH IF @@TRANCOUNT>0 BEGIN SELECT @@ERROR,ERRO...
-
All we need to use the Custom paging in grid view without object data source. Here i am going to explain my code which is used in custom pa...
-
One of the common requests in ASP.NET is to submit a form when visitor hits an Enter key. That could be a case if, for example you want to m...
-
using System.Data; using System.Data.SqlClient; using System.Text; using System.IO; using iTextSharp.text; using iTextSharp.text.pdf; ...
No comments:
Post a Comment