Best Front Page and Web Design
Forum

Great Web Graphic program
here
 

Simple pop-up
How to code a simple pop up window

 

 

back  -  home  -  window scripts

Need a pop-up window and would like it an exact size
or without status bar or toolbar? Do you know what
the status and toolbar are? Well below are examples
showing exactly what is what!

 

Pop-up 1

Test Window

pop-up 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8

The below code should all be on one line - no line returns.

<a href="#" onclick="Popup=window.open('testpage1.htm','Popup','toolbar=no,
location=no,status=no,menubar=no,
scrollbars=yes,resizable=no, width=420,height=400,left=430,top=23'); return false;">
Test Window</a>

 

Scrollbars Yes
Toolbar No
Location No
Status No
Menubar No
Resizable No
Width 420
Height 400
Position Left 430
Position Top 23

 

Pop-up 2

Test Window

pop-up 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8

The below code should all be on one line - no line returns

<a href="#" onclick="Popup=window.open('testpage1.htm','Popup','toolbar=yes,
location=no,status=no,menubar=no,scrollbars=no,resizable=no,
width=420,height=400,left=430,top=23'); return false;">
Test Window</a>

 

Scrollbars No
Toolbar Yes
Location No
Status No
Menubar No
Resizable No
Width 420
Height 400
Position Left 430
Position Top 23

 

Pop-up 3

Test Window

pop-up 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8

The below code should all be on one line - no line returns

<a href="#" onclick="Popup=window.open('testpage1.htm','Popup','toolbar=no,
location=yes,status=no,menubar=no,scrollbars=no,resizable=no,
width=520,height=400,left=430,top=23'); return false;">
Test Window</a>

 

Scrollbars No
Toolbar No
Location Yes
Status No
Menubar No
Resizable No
Width 420
Height 400
Position Left 430
Position Top 23

 

Pop-up 4

Test Window

pop-up 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8

The below code should all be on one line - no line returns

<a href="#" onclick="Popup=window.open('testpage1.htm','Popup','toolbar=no,
location=no,status=yes,menubar=no,scrollbars=no,resizable=no,
width=620,height=400,left=230,top=23'); return false;">
Test Window</a>

 

Scrollbars No
Toolbar No
Location No
Status Yes
Menubar No
Resizable No
Width 420
Height 400
Position Left 430
Position Top 23

 

Pop-up 5

Test Window

pop-up 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8

The below code should all be on one line - no line returns

<a href="#" onclick="Popup=window.open('testpage1.htm','Popup','toolbar=no,
location=no,status=no,menubar=yes,scrollbars=no,resizable=no,
width=420,height=400,left=430,top=23'); return false;">
Test Window</a>

 

Scrollbars No
Toolbar No
Location No
Status No
Menubar Yes
Resizable No
Width 420
Height 400
Position Left 430
Position Top 23

 

Pop-up 6

Test Window

pop-up 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8

The below code should all be on one line - no line returns

<a href="#" onclick="Popup=window.open('testpage1.htm','Popup','toolbar=no,
location=no,status=no,menubar=no,scrollbars=no,resizable=yes,
width=420,height=400,left=430,top=23'); return false;">
Test Window</a>

 

Scrollbars No
Toolbar No
Location No
Status No
Menubar No
Resizable Yes
Width 420
Height 400
Position Left 430
Position Top 23

 

Pop-up 7

Test Window

pop-up 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8

The below code should all be on one line - no line returns

<a href="#" onclick="Popup=window.open('testpage1.htm','Popup','toolbar=no,
location=no,status=no,menubar=no,scrollbars=no,resizable=no,
width=150,height=150,left=430,top=23'); return false;">
Test Window</a>

 

Scrollbars No
Toolbar No
Location No
Status No
Menubar No
Resizable No
Width 150
Height 150
Position Left 430
Position Top 23

Pop-up 8

Test Window

pop-up 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8

The below code should all be on one line - no line returns

<a href="#" onclick="Popup=window.open('testpage1.htm','Popup','toolbar=no,
location=no,status=no,menubar=no,scrollbars=no,resizable=no,
width=150,height=150,left=50,top=50'); return false;">
Test Window</a>

 

Scrollbars No
Toolbar No
Location No
Status No
Menubar No
Resizable No
Width 150
Height 150
Position Left 50
Position Top 50

 

back  -  home  -  window scripts

 

Discount Templates Discount Domains Domain Reseller  Template-Layouts 
Sponsor a child    Living Kidney Donation