How about:

var link1 = "Link1 text"
var link2 = "Link2 text"
var content = ""

content += "<div onClick='myFunction1()'>" + link1 + "</div>"
content += "<div onClick='myFunction2()'>" + link2 + "</div>"

win99.getContent().innerHTML = content



At 10:48 AM on Thursday, 22 March 2007, Alan McLennan wrote:
>In a multi-window application, I am using the following line to write to
>"win99".
>
>win99.getContent().innerHTML= ('<A javascript:MyFunction>Link 1</A>');
>
>I am trying to create a dynamic list of links in "win99".
>"Link 1" appears in win99, but then the problems start.
>I am using an observer, and want this to update win99.
>
>1.  How do I replace the text "Link 1" with a string variable, and
>2.  How do I create the link to run MyFunction, and
>3.  How do I write multiple lines to win99 using innerHTML, or is there
>some other way ?.
>
>Thanks for all help offered.
>
>
>_______________________________________________
>Javawin mailing list
>[email protected]
>http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com

_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com

Reply via email to