Click here to Skip to main content
16,013,747 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I implemented javascript and one button when I click the button I want to pass UR as parameter to that function

What I have tried:

function <pre><pre lang="text"><script type="text/javascript">
        function LoadHGGames(param) {
            var url = param;
            window.open(url, 'winPop', '_blank,height=650,width=1000,left=0,top=0,resizable=yes,location=yes,status=no');
            window.focus();
            return false;
        }
    </script>


<asp:Button runat="server" Text="submit" OnClientClick="javascipt:LoadHGGames(https://v3livehguat.hointeractive.com/visitor/login/V3login.jsp?detectflash=false&lang=en&refreshfly=true)" />
this code not working
Posted
Updated 19-Oct-16 20:56pm

1 solution

add quotes to the url

ASP.NET
<asp:Button runat="server" Text="submit" OnClientClick="javascipt:LoadHGGames('https://v3livehguat.hointeractive.com/visitor/login/V3login.jsp?detectflash=false&lang=en&refreshfly=true')" />
 
Share this answer
 
v2
Comments
MalathiMals 20-Oct-16 3:03am    
i tried that one but not working
MalathiMals 20-Oct-16 3:04am    
sorry working good
Karthik_Mahalingam 20-Oct-16 3:06am    
Ok :)

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