Click here to Skip to main content
15,896,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
XML
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default4.aspx.cs" Inherits="Default4" %>
<%@ PreviousPageType VirtualPath="Default3.aspx"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>hiiii</title>
    <script type="text/javascript">
    var browserName = "";
    function callme(id)
    {
        var ua = navigator.userAgent.toLowerCase();
        if ( ua.indexOf( "msie" ) != -1 )
        {
            this.style.behavior='url(#default#homepage)';
            this.setHomePage('www.yahoo.com');
            browserName = "msie";
        }
    }
    </script>
</head>
<body>
<FORM>
<INPUT TYPE="button" VALUE="yahoo" onClick="callme(this.id);">
</FORM>
</body>
</html



This code is not working please help me ........
Posted
Updated 30-Jan-11 18:10pm
v3

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900