Hi onais,
Since the logout is a link with anchor tag its calling the jQuery click event on logout click. So you need to provide a proper class name to the treeview node and assign the jQuery click event to the anchor tag with class name.
Check the below example.
HTML
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript">
$(function () {
$('a.treeNode').on("click", function () {
$('[id*=iframeLink]').attr("src", $(this).attr('href'));
$('[id*=iframeLink]').attr("style", "display: block");
return false;
});
});
</script>
<div>
<a class="treeNode" href="https://www.aspforums.net/">ASPForums</a>
<br />
<a class="treeNode" href="https://www.aspsnippets.com/">ASPSnippets</a>
<br />
<a href="http://www.jqueryfaqs.com/">jQueryFaqs</a>
<br />
<iframe id="iframeLink" style="display: none"></iframe>
</div>
Demo