Originally posted by Angela Jessi:
Hi Nill,
I really appreciate your help. I really need help this time. Okay let me explain you briefly.
I want to create web page.In which I want (for example) create 5 rows and 3 columns and one push button with pure HTML code.Now with the Javascript and may be with DOM, when I click push button, I want to change the value of any particular cell(for example:1st cell of 3rd row).
Now I know how to make table of 5 rows and 3 columns in HTML. But I really don't how with the use of DOM I can change the value of particular cell.If you would explain by very simple example. I will really appreciate your response.
Thanks again a lot,
Angela
Originally posted by bill bozeman:
[B]The DOM will work with IE but not Netscape. With IE, every tag is part of the DOM and can be accessed, but with Netscape that is not true. They only have certain tags that you can access in javascript. For that reason, you would want to have all of your cells start with a div tag so you can change the contects of the div tag. So it could look like this:
Then you have some javascript that changes the value of what is in that div tag. That is what I would think would be the easiest solution. However, trying to change the value of the div tag is the main work. I am not a DHTML expert, so take a look at some sites like www.dhtml.com and look for some examples.
Good luck,
Bill[/B]
Originally posted by bill bozeman:
Roseanne, that is a good link and Angela that is kind of like what I was saying. However, when I run the link in Netscape it didn't work, so again you will have to play with it to get it to work in both browswers. innerHTML is the function I couldn't remember. Test that in Netscape and see what you get.
Bill