It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

I want to get the names of element ID -newbie-

I want to get the names of element ID -newbie-

Postby Auk on Sun May 24, 2009 1:49 am

//I want to get the names of element


Code: Select all
window.onload=intAll;

function intAll(){
//alert(document.getElementById.toString + " AX");
//alert(document.getElementById.length);

if(document.getElementById){
for (var i=0;i<=document.getElementById.length ;i++){
alert(document.getElementById.toString );
[color=#FF0000]//I want to get the names of element[/color]
}
  } else {
   alert("Sorry, your browser doesn't support this script");

}
}


but i can't by document.getElementById.toString command
Auk
 
Posts: 1
Joined: Mon May 18, 2009 1:00 am

Who is online

Users browsing this forum: No registered users and 6 guests