1
I have the following script that takes all links from a page and opens in a window, how can I open the result in a centralized window?
javascript: var w = window.open('', '', 'height=800, width=600');var a = document.getElementsByTagName('a');var b = a.length; if(b != 0){ w.document.write('<h1> Lista de Links </h1> '); for (i = 0; i < b; i++){ w.document.write('<pre><a href=\'' + a[i] + '\'>' + a[i] + '</a>' + '</pre> ');}} else{ w.document.write('Nenhum link encontrado');}
It has to center Vertically too?
– Miguel Silva
I added in the reply. :)
– Sam
Show! Thank you!
– Miguel Silva