Bookmarks (more than 2 levels)
hi,
i want add bookmarks 3 levels. have success 2 levels:
var myroot = this.bookmarkroot;
myroot.createchild("a");
myroot.createchild({cname: "b", nindex: 1, cexpr:"this.pagenum=2;"});
myroot.createchild({cname: "c", nindex: 2, cexpr:"this.pagenum=10;"});
var child = myroot.children[1];
child.createchild({cname: "bb", nindex: 3, cexpr:"this.pagenum=11;"});
var child = myroot.children[2];
child.createchild({cname: "cc1", nindex: 4, cexpr:"this.pagenum=15;"});
child.createchild({cname: "cc2", nindex: 5, cexpr:"this.pagenum=16;"});
how can add bbb child bb?
best regards
christoph
var new_child = child.children[0];
new_child.createchild({cname: "bbb", ...
More discussions in JavaScript
adobe
Comments
Post a Comment