Click to See Complete Forum and Search --> : Pop windows


Mongoloidman
09-02-2004, 08:02 AM
I want to create a pop-up window in ie with no menu,tool,or address bar, and have the window locked to a specific size.

Please spare no detail i have a very minimal knowlage of of webdesign.

richard_nl
09-02-2004, 08:28 AM
This has been answered multiple times on this forum, please have a look around.
Has to be done via javascript anyway.

Basics are:

<SCRIPT LANGUAGE="Javascript">
function popup()
{
var win;
win=window.open ("your_page.htm", "", "width=400,height=300,resizable=no, toolbar=no,scrollbars=no,menubar=no,left=100,top=100");
}
</SCRIPT>

Then call this function in your A HREF tag or in your body tag with onload.

For more attributes on the window.open command please refer to e.g.
http://www.webreference.com/js/column7/attributes.html

Mongoloidman
09-02-2004, 06:12 PM
ok im a real noob. i am very computer literate tho and learn very fast. I just need a little more help.

how do i use that javascript? in htm php asp ....
and then how would it be connected to a link lets say a flash button?

sorry for the ignorance on my part im trying to teach my self.

richard_nl
09-03-2004, 03:32 AM
First of all I would advise you to learn more about the basics of web design. This can be done via the web, which has some great online courses.

Check out: www.w3schools.com (http://www.w3schools.com) for example

Javascript is put inside a HTML page and allows you to do client-side programming.

You mention flash button and that is something completely different. If you want to open a new window with the use of Flash buttons, you must call the javascript function in your action section of flash.
In that case the javascript function must be specified in the HTML page that contains the Flash object.

If you just want to open a new window after clicking a hyperlink on your page then this is the most simple solution:

<A HREF="" onClick="window.open('yourpage.html', 'Title',
config='height=300,width=300')">Click To Open your page</A>

mathzhao
09-06-2004, 07:21 PM
your answers are very appreciated. thank you vert much

blinkerz
11-29-2004, 06:46 AM
I'm a newbie in web desinging
but how do we open a pop up after clicking an image?

Charles
11-29-2004, 10:54 AM
<a href="http://www.w3.org/" onclick="window.open (this.href, 'child', 'height=400,width=300'); return false"><img alt="W3C" src="http://www.w3.org/Icons/w3c_main"></a>

blinkerz
11-30-2004, 05:10 AM
Thanks for you reply
I really appreciate it