Skip to main content
Participant
November 17, 2006
Question

Writing a text string in a table

  • November 17, 2006
  • 2 replies
  • 280 views
Right now the current piece of script is
document.body.insertBefore(oAddLink, document.StockForm);
and that writes the text string inside the form. Well I need to write it inside a table but the table doesn't have a name so how could I do that?
This topic has been closed for replies.

2 replies

Inspiring
November 18, 2006
TGuthrie wrote:

> Right now the current piece of script is
> document.body.insertBefore(oAddLink, document.StockForm);
> and that writes the text string inside the form. Well I need to write it
> inside a table but the table doesn't have a name so how could I do that?
>
I would give the <td> in which you want to place the link an id

document.getElementById("yourID").innerHTML=oAddLink;

Mick
Inspiring
November 17, 2006
name the table.
"TGuthrie" <webforumsuser@macromedia.com> wrote in message
news:ejkfpo$3np$1@forums.macromedia.com...
> Right now the current piece of script is
> document.body.insertBefore(oAddLink, document.StockForm);
> and that writes the text string inside the form. Well I need to write it
> inside a table but the table doesn't have a name so how could I do that?
>