Explorar el Código

Add target=_blank test

Alexandre Dieulot hace 6 años
padre
commit
e81615ca9d
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      test/app.js

+ 1 - 0
test/app.js

@@ -60,6 +60,7 @@ async function requestListener(req, res) {
       }
     }
 
+    content += `<a href="/${page}?${Math.random()}" target="_blank"><span>Opens in a new tab</span></a>`
     content += `<a href="/${page}?${Math.random()}#anchor"><span>Other page anchor</span></a>`
     content += `<a href="${req.url}#anchor" id="anchor"><span>Same-page anchor</span></a>`
     content += `<a href="/${page}?${Math.random()}" data-no-instant><span>Manually blacklisted link</span></a>`