Sometimes: No option to open link to a new tab
-
- Posts: 41
- Joined: August 14th, 2010, 4:38 am
- Location: Denmark
Sometimes: No option to open link to a new tab
Sometimes you dont have the option to open a link to a new tab (mouse click + CTRL) -Why is that? and can it be bypassed
Last edited by LIMPET235 on November 30th, 2019, 4:41 am, edited 1 time in total.
Reason: Some slight text editing....as the OP noted.
Reason: Some slight text editing....as the OP noted.
- DanRaisch
- Moderator
- Posts: 127243
- Joined: September 23rd, 2004, 8:57 pm
- Location: Somewhere on the right coast
Re: Sometimes: No option to open link to a new tab
Can you provide3 an example of such a URL/link?
-
- Posts: 41
- Joined: August 14th, 2010, 4:38 am
- Location: Denmark
Re: Sometimes: No option to open link to a new tab
https://www.tvguide.dk/ - the pictures at the top of the page
- therube
- Posts: 21714
- Joined: March 10th, 2004, 9:59 pm
- Location: Maryland USA
Re: Sometimes: No option to open link to a new tab
You can; right-click, then Ctrl+View Image (or right-click, then center-click while over View Image).
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
-
- Posts: 41
- Joined: August 14th, 2010, 4:38 am
- Location: Denmark
Re: Sometimes: No option to open link to a new tab
This showing the pic - There is a url "under" the image (sorry if i not give the correct technicology explanation)
- DanRaisch
- Moderator
- Posts: 127243
- Joined: September 23rd, 2004, 8:57 pm
- Location: Somewhere on the right coast
Re: Sometimes: No option to open link to a new tab
There's a lot of scripts running on that site that might be intercepting Firefox standard commands.
-
- Posts: 41
- Joined: August 14th, 2010, 4:38 am
- Location: Denmark
Re: Sometimes: No option to open link to a new tab
but can it be ignored?
-
- Posts: 6435
- Joined: February 3rd, 2009, 6:29 pm
Re: Sometimes: No option to open link to a new tab
The img element uses a click event listener to change the current page.
- WaltS48
- Posts: 5141
- Joined: May 7th, 2010, 9:38 am
- Location: Pennsylvania, USA
Re: Sometimes: No option to open link to a new tab
That means it can't be ignored?morat wrote:The img element uses a click event listener to change the current page.
If I click an image a new page opens with a complete article, but there is no way to open that article in a new tab.
https://www.tvguide.dk/nyheder/81629/sa ... ns-er-slut
Linux Desktop - AMD Athlon(tm) II X3 455 3.3GHz | 8.0GB RAM | GeForce GT 630
Windows Notebook - AMD A8 7410 2.2GHz | 6.0GB RAM | AMD Radeon R5
Windows Notebook - AMD A8 7410 2.2GHz | 6.0GB RAM | AMD Radeon R5
- jscher2000
- Posts: 11770
- Joined: December 19th, 2004, 12:26 am
- Location: Silicon Valley, CA USA
- Contact:
Re: Sometimes: No option to open link to a new tab
If you right-click the element and Firefox doesn't show Link-specific items at the top of the context menu, then it is not a link and tricks that work with links are unlikely to work.
-
- Posts: 41
- Joined: August 14th, 2010, 4:38 am
- Location: Denmark
Re: Sometimes: No option to open link to a new tab
Thanks enlighten me
Sometimes I find that links (which are obviously not the right way to describe them, sorry) open up as a small pop-up window - for example, a video that starts.
I assume there isn't a trick, either, that can make that video open in a new tab? Are there ways to find a direct address for these kind of video links?
Sometimes I find that links (which are obviously not the right way to describe them, sorry) open up as a small pop-up window - for example, a video that starts.
I assume there isn't a trick, either, that can make that video open in a new tab? Are there ways to find a direct address for these kind of video links?
- WaltS48
- Posts: 5141
- Joined: May 7th, 2010, 9:38 am
- Location: Pennsylvania, USA
Re: Sometimes: No option to open link to a new tab
How does clicking one of those elements on that site, open the page with a text article along with the image if it is not a link?jscher2000 wrote:If you right-click the element and Firefox doesn't show Link-specific items at the top of the context menu, then it is not a link and tricks that work with links are unlikely to work.
JavaScript?
Linux Desktop - AMD Athlon(tm) II X3 455 3.3GHz | 8.0GB RAM | GeForce GT 630
Windows Notebook - AMD A8 7410 2.2GHz | 6.0GB RAM | AMD Radeon R5
Windows Notebook - AMD A8 7410 2.2GHz | 6.0GB RAM | AMD Radeon R5
- dickvl
- Posts: 54163
- Joined: July 18th, 2005, 3:25 am
Re: Sometimes: No option to open link to a new tab
(wrong thread)
Last edited by dickvl on December 3rd, 2019, 2:46 pm, edited 1 time in total.
-
- Posts: 6435
- Joined: February 3rd, 2009, 6:29 pm
Re: Sometimes: No option to open link to a new tab
@WaltS48
Here is a code example that creates a click event listener on Walt's avatar that opens the faq page.
You can run the code in the console, then click on Walt's avatar to test.
i.e. Tools > Web Developer > Web Console (Ctrl+Shift+K)
A link uses an anchor element with the href attribute.
http://www.w3schools.com/html/html_links.asp
Here is a code example that creates a click event listener on Walt's avatar that opens the faq page.
Code: Select all
(function () {
var imgs = document.querySelectorAll('img[src$="1380795_1287423495.jpg"]');
for (var i = 0; i < imgs.length; i++) {
imgs[i].addEventListener("click", function () {
window.location.href = "http://forums.mozillazine.org/faq.php";
}, false);
}
})();
i.e. Tools > Web Developer > Web Console (Ctrl+Shift+K)
A link uses an anchor element with the href attribute.
http://www.w3schools.com/html/html_links.asp
- jscher2000
- Posts: 11770
- Joined: December 19th, 2004, 12:26 am
- Location: Silicon Valley, CA USA
- Contact:
Re: Sometimes: No option to open link to a new tab
Yes, exactly. For example, window.open() method or location.href = new URL.WaltS48 wrote:How does clicking one of those elements on that site, open the page with a text article along with the image if it is not a link?jscher2000 wrote:If you right-click the element and Firefox doesn't show Link-specific items at the top of the context menu, then it is not a link and tricks that work with links are unlikely to work.
JavaScript?