I have a use case in which I have to open an URL from Application A which is a SaaS web application. and during it's session Application A can request many URLs to open one by one but all should open in Same Browser Window Tab which was established on first click, in case Browser window is closed accidently next click will open it and subsequent URL request will open in same tab.
Second piece to this is opening on Screen 2 as i have dual monitor setup.
For use case one I was trying something by windows.open and naming that window it works one time next time open two new windows.
Please guide if this is possible? or if any other alternative framework which can help achieve this?
Related
in a last stint to change from EI to Edge, I'm trying to do some focusing that doesn't work like I want it to.
The situation is something like this. Edge is open with several tabs for different pages. One of these pages is an intranet system where the pages contains a link which opens a popup.
In this popup the user has a button where they can create some docx files on a server. To do this, the button calls a new page (subpage1) through javascript (window.open) and the new page again calls another page (subpage2), which finally creates the document.
The later (subpage2) will close (windows.close) it's window on completion.
It all works like it should, with the little annoyance, that the "mother" windows in Edge will switch to the tab to the far right, instead of just staying on the user choosen tab.
Can I control which tab keeps or regains focus when a tab are closed in Edge and if so how?
I am creating a website and on the website, I need about 10-20 more tabs on the user device,
I know how to do this with javascript but the user can disable javascript on the browser which basically stops the entire point of the website, is there any way to do it without javascript (maybe sending a header to Chrome or something that opens a website in a tab)?
There is no way to do that without JavaScript to open multiple tabs at once.
You can make a link open a new tab with the target attribute when clicked by the user, but that is limited to one new tab for one user interaction.
maybe sending a header to Chrome or something that opens a website in a tab
Even if that would be possible with some kind of trick, it would likely be fixed in an update in the browsers, because this will this would be definitely be abused by dubious websites.
Well, the pure HTML way to do that is through the target attribute of any hyperlinked element (A, FRAME, FORM), which shall contain the name of the window that should receive the content of the hyperjump.
Example:
<!--These two hyperlinks redirect the URLs to the same tab-->
local clients
inernational clients
<!--This hyperlink redirect the URL to its own tab-->
providers
Anyway, I warn you not to abuse of this form of forced navigation, because it can chase your user out of your website: The user should be left as free as possible to chose to open or not new tabs/windows. And 10-20 tabs seems to me an overwhelming amount of tabs.
Currently I log in SAPGUI via Portal. I have ABAP program which opens a link to UI5 application (creating a new tab in the same browser window with the Portal).
There is a requirement that by closing the UI5 application tab, ideally the SAPGUI window will pop up and user should go back to SAP GUI to continue original transaction. Consider adding a footer to the UI5 app with a button to “Close” which will close the tab.
Is it possible to handle "going back to SAPGUI" from javascript?
no. Thanks good, that is impossible. Imagine if every webpage could access your desktop in any way.
You can use SAPGUI shortcuts to open a new transaction via file download.
Just set up every browser as open download per default and trigger a SAPGUI shortcut via button.
I am working on a client site where the client has requested that there be a button (basic a link) that links to another page like google, in case an abusive significant other busts into the room while a woman is reading about how to get assistance. The tricky part is that I am trying to figure out to link to a page that will open int he same windows, but no let you go back to the site by clicking the browser's back button, or show up in "history". I have built a lot of website and never heard of this being possible without the use of a custom browser extension or something.
My question is ..
Is there a way to do this? Possible some JS magic? Just wondering
You're looking for location.replace().
<button onclick='location.replace("https://www.google.com");'>Click to close</button>
Instead of creating a new entry in browser history, it replaces the current one.
Note: Unfortunately, it's blocked by [SO]. But just try it in your app. It does work.
Second note: If you combine this with initially opening the to be hidden page in a new tab (target="_blank") => no history.
However, the best method and advice for such cases is browsing in incognito: Ctrl+Shift+N. Once closed, it's gone, with all history in the session. Pressing Ctrl+Shift+T in a new browser window won't bring the formerly opened tabs back.
IMHO, this technique should be clearly detailed in the "Precautions" section of your client's website, also advising on having another "normal" browsing session opened in a background browser window, with a few neutral tabs open on subjects that wouldn't raise any suspicions: cooking recipes, things for children, cosmetics, etc...
I am not sure about your question.
But on click you can open Iframe
<iframe src="www.google.com" style="border:none;"></iframe>
How can I prevent tab opening delay so that I regain control immediately after a single window.open?
Is there any asynchronous window.open like instruction/function available?
Otherwise, how can I emulate the Ctrl+click behavior using Javascript?
… Given the following context …
I have a navigation bar that contains a lot of links pointing to different sections of the application.
One of the big bosses said: «When I click on many of those links the application gets unresponsive»
Which basically mean that he keeps on clicking on those links and then too many tabs suddenly open all at once.
The navigation bar contains links that when clicked trigger the following instruction: window.open(LINK_ADDRESS_HERE, "_blank").
I have noticed that if let's say 6 of those links are clicked within like two seconds, related tabs open as I click on them. But clicking 10 different (navbar) links causes to delay tabs opening, and all of a sudden, the expected tabs finally open, but it takes 3 or more seconds for them to open.
I suspect the user to run too many clicks at the same time and the browser might not handle this.
On the other hand Ctrl+click several links (so they open in a new tab each) on some random sites like StackOverflow doesn't disturb the browser at all and tab opening is not delayed.
In my opinion the issue must come either from my application's JavaScript code or the way window.open works.
Tabs open successfully when only few links have been clicked. But if I click a lot more after the first set of links that have already loaded, at that point this may be either that the application is slow and it takes longer for the new tabs to load, or opened tabs that still load consume the available connections the browser tolerate for a single domain/application (I think that's like 6 connections in HTTP 1.1) and so when new calls to window.open are made, they just wait for a connection slot to be freed. As suche, what I perceive as slow open tabs is due to window.open waiting for available connections.
Thank you.