Pop-up does not show
-
Hi,
On the page https://www.dsb.dk/find-produkter-og-services/dsb-rejsetidsgaranti/dsb-basis-rejsetidsgaranti/se-kompensation/ there is a button on the right "Søg Rejsetidskompensation". When I press it in vivaldi, I get a new empty tab. No pop-up. I have similar issues in Chrome and Firefox which says Pop-up is blocked and allow me to change this. I can even add it as an exception. Nevertheless, they too do not show the pop-up.However Edge does, albeit in a separate browser invocation pop-up window.
Can you recreate this?
Is this as expected (if so, why)?
If not, can I do something about it?
If not, is this a bug? -
As it fails in multiple browsers, it's clearly a badly coded and tested site. Maybe doing it the way they do worked a long time ago, but nowadays browsers are very strict about the opening of popups and they should be avoided if possible.
It works in old Edge, but it's likely very forgiving about code errors, just like MSIE, no idea about new Edge.
Firefox and Vivaldi opens a new tab, no blocked popup prompt (maybe it should prompt, dunno...)
Chromium and Opera opens a new tab, prompts user that a popup was blocked. But most users will be confused by this no matter what.Couple of big errors:
- Use of
target="_blank"
leading to a new tab in modern browsers, not a new window. Back when MSIE was king, it might've worked as expected. - Expecting users to understand what happened and disable the popup-blocker for the site. Most users will not understand this and will simply give up.
- Use of double quotes inside the JS block, this will most likely confuse the parser on where the JS ends.
I made a quick mockup of what works and what doesn't:
https://www.w3schools.com/code/tryit.asp?filename=GIPRYGIRWOGK
I'm sure the web-dev eggheads on here will correct whatever amateur mistakes I've done here - Use of
-
On my system it also does not open because the Pop-Up-Blocker. Maybe that´s your Problem too?
-
Thanks for the answers. Clearly a bug, but NOT in Vivaldi
I have reported the problem to the Danish railway. It is not their only problem.
-
Ppafflick moved this topic from Vivaldi for Windows on