"Scroll to text fragment" and another hash action in link - html

Does anyone know if there is a way to use the "scroll to text fragment" feature in a link (e.g. "http://url.com/page/#:~:text=highlight%20this") in addition to another hash action in the same link?
I have a page with tabs (its a divi tabs module in wordpress) and when clicking link on another page coming to this page I would like to open a tab (can be done with "http://url.com/page/#tab|2") and also highlight text within that tab.
Does anyone know how to do this?
If I first go to "http://url.com/page/#tab|2" (opens the tab) then append "#:~:text=highlight%20this" or "&:~:text=highlight%20this" to the end of the url, it achieves the desired affect. But it does not when going directly to "http://url.com/page/#tab|2#:~:text=highlight%20this" (it just redirects back to "http://url.com/page/#tab|2")
Any ideas would be appreciated.

Related

Canva.com, how can I have opend link in new tab

I am training to add links to my Canva project.
But I need links which one opens in new browser tab. Is anyone knows how to do this?
To link to another website page, enter the link, and press Enter on your keyboard or click anywhere on the editor.
To link to another page within the design, select the page you want to link to from the Pages in this document section in the dropdown.
To link to one of your recent designs, select it from the Recent section in the dropdown. Make sure have the right permissions to the design you’re linking to so it loads properly to your audience.

Chrome - Highlight Links that open in new/same tab

before clicking on a link, I would like to know whether it will open in a new tab or in the same tab. Is there a way to display this information in some way? With a small symbol next to the link or by altering link colors or something similar.
Thank you!

Inspect where html pop is coming from

I have this annoying popup where it only displays the number 1. tried to search it manually in the system but there is too much others ones. is there a way where i could inspect a popup?
on your web page click on view page source by clicking on mouse right click or by ctrl+u with keyboard shortcode.
and then find:
alert(
and comment all alert box into your code.
Get id of that alert and search it manually. To get id, follow the image boxes or press CTRL+Shift+C and press ok. You will find function call in element section. go to the function and get your alert box.

Python 2.7 Webdriver - Automating mouse copy of an anchor text element

I am trying to automatically paste an anchor text link into a Facebook Note. Please try the following scenario:
Go to any site and locate anchor text with a hyperlink. Manually, with the mouse, left click and swipe across the text. Then, right click and select copy (not Copy link address). You have now copied the text and link to the clipboard as a single entity. Now open Facebook notes, create a note and paste and the link will be inserted. Pasting into MS Word also works. Please refer to the attached image from Facebook. I pasted Link-1 which is clickable and goes to a new site. Inserted html (Link-2) is rejected. So, what I need is to automate the mouse left click, swipe the located text element (I know how to find the element), right click it and select Copy.
Facebook Edit Note Page
Finding the element and using driver.send_keys(Keys.CONTROL, 'c') copied the anchor text to the clipboard successfully. I was able to paste it manually and click on it to go to the URL.
QED

React-router: how to handle more complex navigation workflows (like, with popups...)

I have an application where you can display 2 kind of content.
There are 3 "main content" pages, which have the urls:
/ (root)
/favorites
/timeline
There is also a settings popup. It goes on top of the "main content". I should be able to deep-link to this setting popup directly. Opening that link directly (like, from an email) should lead to the content displayed for the root / in the background with the settings popup opened in the foreground.
When the settings popup gets closed, it should not affect main content that was under the popup. Url should take back its previous value (the one of the main content: one of / /favorites or /timeline)
Usecase: being somewhere, opening the settings popup, and then closing it.
Be on /favorites
Click on /settings link
Settings popup should open
Click on close button in settings popup
Settings popup should close and url should be /favorites
I'm having trouble implementing this. I've tried to use history.goBack() but it is actually not what I want. On close I don't want to go back, but I actually want to push a new /favorites entry into the history.
Also, using goBack means that if the user comes directly from link /settings, then there's nowhere to go back because there's no back history entry...
I'm also trying to see how I could use history.push() but it seems a bit unnatural to me (and very tightly coupled!) that my settings popup could have to do something like history.push("/favorites") to close itself...
Any idea on how to solve this problem in an idiomatic way?