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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pop up Window

Status
Not open for further replies.

jazzme

Programmer
Nov 28, 2003
8
0
0
IN
Is there anyone here that can show me the code how to make
the popup window in javascript? I need some help pls.
 
Hi Jazzme,

How would you like this popup window to occur, when a vistor does something in particular or clicks on something particular?

James
 
When I click the link.It opens another window.
 
Hi,

Try this:

<A HREF=&quot;javascript:void(0)&quot;
ONCLICK=&quot;open('sample.htm','miniwin','toolbar=1,location=1,directories=1,status=1,menubar=1, scrollbars=1,resizable=1,width=300,height=300')&quot;>Open a Window</A>

Change any vaule of 1 to 0 for it not appear
Change sample.htm to the file name
Change miniwin to the name of the window you want

Do you need any more help?

James
 
Hi,

Just incase you need them:

A List of Window Features ( 0=off , 1=on )

toolbar=0 (back, reload, home, etc.)
location=0 (url input field)
directories=0 (favorites)
status=0 (at bottom of page)
menubar=0 (file, edit, view, etc.)
scrollbars=0 (can the person scroll?)
resizable=0 (can the window be stretched)
width=600 (width of window in pixels)
height=400 (height of window in pixels)

James
 
Thanks a lot.How about the html tags?. After you wrote the
javascript.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top