Click here to Skip to main content
16,018,904 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

Plz send me some coding format that how to use java script in web application and window also.
Posted
Comments
Manfred Rudolf Bihy 12-Apr-11 6:37am    
"coding format", "in web application and window also".
WTF? You sound a bit confused and I must advise you to turn to google (it's your friend) and some solid R&D before coming here to ask nonsensical questions.

Hi, Click here. You can get a lot about javascript
 
Share this answer
 
v2
take a html Check Box

<input type="checkbox" id="chk1" name="chk" />

//One button to call that script function 

<asp:LinkButton ID="lnk_Register"  OnClientClick="javascript:return validate();" runat="server" </asp:LinkButton>

//finally your javascript code 

<pre lang="xml"><script type="text/javascript">
        function validate() {

            if (document.getElementById('chk1').checked == true) {
                return true;
            }
            else {
                alert("You Must Agree To Terms");
                return false;
            }
        }
    </script>




 
Share this answer
 
Try this[^].

Google is your friend. Check this[^].
 
Share this answer
 
v2

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