I want to have a linke when pressed will open a small windows (defined size) without toolbars an any other things attached. Perhaps just with a close button and some information. How can I acoumplished this?
Here ya go, put this in the <head> section:
<script>
function openwindow(file,name,prefs) {
var wind = window.open(file,name,prefs);
}
</script>
And this where you want the user to click the botton:
<a href="javascriptpenwindow('name_of_file.html','window1','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=no,copyhistory=no,width=500,height=350')">Click Here</a>
The bold will define the width and height of the new pop-up window...
Just a comment, the 'window1' will increment as you keep calling the function... I have not failed; I merely found 100,000 different ways of not succeding...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.