Sharepoint Open Page in New Tab not Window - sharepoint

I am working on a sharepoint page and want certain links to open in a new tab not a new window. I haven't seen any way to do this other than have server access or doing some invasive coding. I'm not sure of actual version of SP but think it's 2007.
IE version is v8
I checked code in edit mode and can see the target blank bit but as I said it opens in new window not tab.
Thanks
Andrew

_blank option for target param instructs the browser to open hyperlink in either new tab or window. But it depends on browser config or how link has been clicked on (middle click, ctrl+click or normal click) how the link would be opened (new window or new tab).

Related

IE 11 & Office 365 - getting Excel to open instead of being prompted

Windows 10, IE 11, Office 365
Desired behavior: From a website that runs reports (Crystal, but inside a custom web application), click on View Report button, Excel opens in a new window and report is displayed in Excel. Works this way on the same system but only when using Firefox.
What IE does:
Click on button to View Report, a new window opens, user is prompted "What do you want to do with xxxxx.xls" and the options Open (The file won't automatically be saved), Save, and Save As. Click on Open, Get a message at the bottom of the browser saying "Do you want to save xxxxxx.xls" with the only options being Save or Save As. Save and Open (third option) is not available. Click Save, then am prompted to Open, Open Folder or View Downloads. Clicking Open opens Excel and the report displays fine. (3 clicks to open in excel). Prior to installation of Office 365, IE 11 performed the same way as Firefox.
To my knowledge, I have the appropriate security settings selected. Any idea why this might have simply stopped working? Since Firefox works, I do not believe the issue is with configuration of Excel.
Any help, thoughts, etc. appreciated.
I hate linking a text picture, but that's what I found unfortunately.
src: https://social.technet.microsoft.com/Forums/ie/en-US/6fea6fc0-7987-47d7-a002-d73a90b1debb/asking-what-do-you-want-to-do-with-this-file?forum=ieitprocurrentver

window.open with noopener opening URL in new window despite target=_self

I'm trying to open a window using noopener property and target=_self. Essentially what I want is to open the URL in the same tab while preventing it to have access back to the originating URL.
I'm trying with this syntax:
window.open('http://my-url.com', '_self', 'noopener');
However, this opens the new URL in a new window.
Is there some inherent functionality (maybe the browser back button?) which prevents a URL from opening in the same tab without having access to the previous window ? The docs say nothing about it (https://developer.mozilla.org/en-US/docs/Web/API/Window/open).
Thanks,
Chris
window.open explicitly opens a new window.
You can use location.assign to navigate to a new page in the current window. (Or just use a normal link.)
I guess you’re worried about “tabnabbing”, right? That only applies to windows opened from your page (e.g. using _target=blank or window.open).
Setting noopener has no effect on a normal link that doesn’t open a new window.
I think location.replace() is what you want
window.location.replace("http://my-url.com");
replace() removes the current URL from the document history.
With replace() it is not possible to use "back" to navigate back to the original document.

How to keep extension pop up to remain open when new tab is clicked

my extension close when link in the extension is clicked
How to keep extension pop up to remain open when new tab is clicked
In general, that's not possible as stated in Chrome Extensions FAQ:
Can extensions keep popups open after the user clicks away from them?
No, popups automatically close when the user focuses on some portion of the browser outside of the popup. There is no way to keep the popup open after the user has clicked away.
However, if you inspect the popup, it will stay open as long as you don't close the Developer Tools window.
For end users, the only thing you could do is use a tab instead of a popup if that works better for your use case, or just inject your code into a specific tab to show your interface on top of/next to a page, as some extensions like Siteimprove do.

Gmail does not obey browser settings for tabs

I noticed that Gmail is not obeying my browser settings for tabs.
For ex:
In Firefox3.6.10, I have unchecked the option "When I open a link in new tab switch to it immediately".
But still when I do CTRL+CLICK on a mail, it opens in a new tab and switches to it.
or
In IE8, I have selected "Always open pop-ups in a new window" but when I do CTRL+CLICK on a mail, it opens in a new tab instead of a new window.
My question is
Is it possible to override user's browser settings?
I was curious about how CTRL-click and SHIFT-click work on these gmail "fake JavaScript links" myself (they appear to ignore browser settings), so I did some testing.
gmail CTRL-click does obey browser "new window/popup" settings (in Firefox the default is "open in new tab", in IE8 the default seems to be "open in new window".) If you change IE8's settings to "Always open popups in a new tab", then you get the same behaviour as Firefox. So gmail CTRL-click is very likely just using "window.open()" in JavaScript, and it's really nothing special. I seriously doubt there's any way to force a new tab to open in JavaScript. Like Yonizaf said, what you observed doesn't seem possible.
gmail SHIFT-click probably uses this method to try to always open a new window (and never a new tab) in JavaScript (window.open() with window dimensions):
JavaScript open in a new window, not tab
As far as the focus thing goes, I noticed that in Firefox new gmail tabs always get the focus, regardless of the "when I open link in new tab, switch to it immediately" setting (like you said), but in IE8 the behaviour seems to be controlled by the "Always switch to new tabs when they are created" setting. I'm guessing this is probably just a result of how Firefox and IE's developers chose to handle new tabs that are created by window.open(), and there isn't much you can do about it, except as Yonizaf said, try to use the window.focus() method (I have a feeling it may not work in IE, though). In fact you can test this for yourself in Firefox and IE8 (disable your pop-up blocker first). I pasted the following URL into both Firefox and IE8 (with "Always switch to new tabs when they are created" disabled, and "Open popups in new tabs" enabled):
javascript:window.open("http://www.google.com", "_blank")
In Firefox, the new tab was opened in the foreground. In IE8, the new tab was opened in the background.
I don't like these JavaScript "fake links" personally, because you lose the middle-click and right-click functionality, and they trigger the pop-up blocker.
the first one is possible, since this options only meant to change the default behavior for links.
the mail list in gmail aren't normal links, it's using javascript.
for the second example, the option can't be overriden by the webpage, but using ctrl+click always means open in new tab, so it's overriden by the user, not the page.

Hyperlink that opens in a new tab but retain focus on the current/parent page

How do you format HTML A tag (when clicked) to make any browser to open it in a new tag, while retaining the focus on the current/parent page?
I know in Firefox, there is an option that says 'When I Open a link in a new tab, switch to the new tab immediately' .. but I want the opposite of this. When a new tab is opened, do not switch. Regardless I check or uncheck this option, it still behaves as I described above.
Anybody faced this before?
Cheers and thanks in advance for your answers,
Lasker
This is a browser setting and you cannot override this from your code and the main thing is
Don't do this.

Resources