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

Create a popup page 1

Status
Not open for further replies.

LonnieJohnson

Programmer
Apr 16, 2001
2,628
US
I want to create a link to another page, but I want it to be a pop up of a certain size.

<a href=&quot;mypopup.html&quot; popup>My pop up page.</a>

What is the syntax for that?

ProDev, MS Access Applications
Visit me at ==> Contact me at ==>lonniejohnson@prodev.us

May God bless you beyond your imagination!!!
 
faq216-2034

JavaScript!

_____________________________________________________________________
You can accomplish anything in life, provided that you do not mind who gets credit.
Harry S. Truman

onpnt2.gif

 
Thanks onpnt,

That was perfect.

ProDev, MS Access Applications
Visit me at ==> Contact me at ==>lonniejohnson@prodev.us

May God bless you beyond your imagination!!!
 
[smile]

_____________________________________________________________________
You can accomplish anything in life, provided that you do not mind who gets credit.
Harry S. Truman

onpnt2.gif

 
good FAQ, and a very good point in the linked article.

I do recommend that you don't use the top= and left= properties when you do a window.open as they are IE only. Netscape has its own NN-only ones..

I don't think there is a standard way of setting the new window's screen location yet :(

Posting code? Wrap it with code tags: [ignore]
Code:
[/ignore][code]CodeHere
[ignore][/code][/ignore].
 
thanks clarkin [smile]

_____________________________________________________________________
You can accomplish anything in life, provided that you do not mind who gets credit.
Harry S. Truman

onpnt2.gif

 
&quot;I do recommend that you don't use the top= and left= properties when you do a window.open as they are IE only&quot;

Well, it won't do any HARM to use those properties. The 80-90% of visitors who use IE will see the window where you want it, to 10-20% who don't will see it wherever it goes by default. If you miss out the properties nobody sees it in the right place.

-- Chris Hunt
 
onClick=&quot;window.open('xxxxx.html', 'width=xx, height=xx, status');&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top