Page 1 of 1

New window without Icons & addressbar

Posted: Tue Mar 25, 2003 5:49 pm
by shony
Is there any way I can define a new window that distinct or do I have to live with <A TARGET=_blank HREF=....?

I do not want to escape to Javascript or anything that fancy.

I just want to create help files on a web site I'm making, and I allready know that I can't resize the window or anything.

And another thing...
Can one (and if, how) close a window in HTML or PHP with a button or link?
I stiil don't want to use client side coding, only pure HTML pluss PHP!

Posted: Wed Mar 26, 2003 2:51 am
by twigletmac
For what you're trying to do you need to use client-side scripting. For instance you can open a new page using just HTML by doing:

Code: Select all

<a href="newpage.php" target="_blank">New Page</a>
but you won't be able to prevent the address bar and icons from being included and you won't be able to have a button or link to close the window (if of course you don't include the cross in the top right-hand corner of the browser).

PHP can't do any of this because it is server-side and HTML can't do it because it's just a mark-up language. This kind of thing is, however, exactly what JavaScript is suited to.

Mac