> top.$("#content_frame").attr("src",$(this).attr("href")); // > fails in the second document > //top.$("#doc_toc_frame").attr("src",$(this).attr("name")); > alert("success"); //never executed
Is the toc frame in the same domain as this document and the content frame? Maybe you're running afoul of a cross-domain problem. Are there messages from Firebug?