Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

open simple window

Status
Not open for further replies.

ssphoenix

IS-IT--Management
Joined
Jan 22, 2001
Messages
306
Location
US
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?

Thanks..
 
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=&quot;javascript:openwindow('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')&quot;>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...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top