0
I’m trying to open a new javascript window, but without the URL... I’ve tried some ways and nothing... has anyone managed to remove it? Follow my initial test code below:
<!DOCTYPE html>
<html>
<body>
<p>Click the button to open an about:blank page in a new browser window that is 200px wide and 100px tall.</p>
<button onclick="popupwindow()">Try it</button>
<script>
function popupwindow(url, title, w, h) {
var w = 200;
var h = 200;
var left = Number((screen.width/2)-(w/2));
var tops = Number((screen.height/2)-(h/2));
return window.open('/', '', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+tops+', left='+left);
//return window.open(url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
}
</script>
</body>
</html>
this has worked: http://jsfiddle.net/8boju236/
– Tobias Mesquita
Is your browser not blocking popup? This is your final code?
– Maicon Carraro
I tested in some browsers and nothing... the code just works does not hide or remove the URL...
– thiago.adriano26