A friend proposed the following application scenarios:
After clicking the link on the current tab, the new content is displayed on the current tab. However, the title must be changed to the new title on the previous page. The solution is as follows:
Add the following to outlook. JS:Code:
Copy codeThe Code is as follows: function changecurrenttabtitle (oldtitle, newtitle, URL ){
VaR currtab = $ ('# tabs'). tabs ('gettab', oldtitle );
// Or var currtab = $ ('# tabs'). tabs ('getselected'); // This can also be
$ ('# Tabs'). tabs ('update', {tab: currtab, options: {Title: newtitle, content: createframe (URL )}});
}
This method receives two parameters: oldtitle is obviously the title of the current page, and newtitle is the title to be displayed on the new page.
This method is called when you click link jump. The Code is as follows:
<A href = '# 'onclick = 'self. Parent. changecurrenttabtitle ("Current title", "new name", "http://www.jb51.net);'> Home of feet </a>
In this way, the starting part of the problem is implemented.