You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to dynamically change the title of the page when entering on a new tab. <h1>@tabs.GetActiveTab()?.Title</h1>
Unfortunally this is not working.
Can you suggest me how I can achieve this?
Actually i'm using a variable and i call the onclick event on every tab to populate this variable.
I'm wondering if there could be a smarter way to do the same.
This discussion was converted from issue #863 on February 11, 2025 16:03.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to dynamically change the title of the page when entering on a new tab.
<h1>@tabs.GetActiveTab()?.Title</h1>
Unfortunally this is not working.
Can you suggest me how I can achieve this?
Actually i'm using a variable and i call the onclick event on every tab to populate this variable.
I'm wondering if there could be a smarter way to do the same.
Beta Was this translation helpful? Give feedback.
All reactions