New Member FAQ | Forums | Earn Revenue


Resources Entrance Ask Experts Exam Papers Jobs English Projects Universities Colleges Courses Schools Training My India



My Profile
Active Members
TodayLast 7 Days more...



Awards & Gifts
Online Exams

Fresher Jobs


Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi

Resources


Find educational articles, blogs, discussion threads and other resources.

Colleges


Find details about any college in India or search for courses.

website counter



Count number of tables on a page in javascript


Posted Date:     Total Responses: 0    Posted By: UltimateRengan   Member Level: Gold   Points/Cash: 3   


Abstract :



This code demonstrates how to count number of tables on a page in JavaScript


< %@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

< !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> Untitled Page< /title>

< script type="text/javascript">

function table_count()
{
alert(document.getElementsByTagName("table").length);
}

< /script>

< /head>
< body>
< form id="form1" runat="server">
< div>
< table>
< tr>
< td>
First table
< /td>
< /tr>
< /table>
< table>
< tr>
< td>
Second Table
< /td>
< td>
< asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="table_count()" />
< /td>
< /tr>
< /table>
< /div>
< /form>
< /body>
< /html>


Project Feedbacks


No feedbacks found. Be the first to respond and make money from revenue sharing program.

Post Feedback
You must Sign In to post a feedback.
Next Project: Dynamic controls through SQL Server using VB.Net
Previous Project: calculator code using visualbasic

Return to Project Index

Post New Project


Related Projects



Advertise Here





Contact Us   Advertise   Editors    Privacy Policy    Terms Of Use   

ISC Technologies.
2006 - 2009 All Rights Reserved.