OK button ‘javascript: void(0)’ opens New tab
-
We’ve been troubleshooting an issue that’s been reported by our EU visitors. Clicking on OK in the consent dialog opens a new tab with a blank page and is disorienting. Sometimes the page title reads “javascript: void(0)”.
This can be found in the markup for the button:
(a tabindex=”0″ id=”CybotCookiebotDialogBodyLevelButtonAccept” lang=”en” href=”javascript: void(0);”) OK (/a)So far I’ve found these forums explaining that the best way to remedy the issue is to have the href be ‘return false’ instead of ‘void(0)’:
– https://stackoverflow.com/questions/17094413/javascriptvoid0-and-target-blank-behaviour
– https://www.quora.com/How-do-you-fix-the-javascript-void-0-errorAre there any plans for a future fix for this issue? It mainly seems to affect Win10 Microsoft Edge, but can also be seen on Win10 Firefox. Win10 chrome seems fine.
- This topic was modified 5 years, 11 months ago by .
- This topic was modified 5 years, 11 months ago by . Reason: fixed markup for consent button
The page I need help with: [log in to see the link]
- The topic ‘OK button ‘javascript: void(0)’ opens New tab’ is closed to new replies.