Forum Discussion
Open external link is same tab/window
Mike - If I understand your question correctly:
If you want the LMS hyperlink to open in a new tab within the same browser window, I think you want the target="_blank" attribute rather than target="_self" as _self opens in the same window AND tab where the link is found (in other words, it replaces the content that displayed the original link). The target="_blank" attribute generally opens a new tab in the same browser window...but Internet Explorer (depending on version) may require changing IE settings to get the behavior you desire. I know the _blank attribute opens new tabs in the same browser window on Mac (10.12.6) and Safari, Firefox, and Chrome. I have not tested on IE recently.
Example: <a href="https://www.w3schools.com" target="_blank">Exit Course</a>
I recommend trying "W3Schools Try It" (see link below) - edit the HTML on the left side with your LMS URL and desired target attribute, then click the [Run>>] button. The link on the right side can then be tested; repeat until you get the desired behavior.
https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_a_target
Related Content
- 4 months ago