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!
New window without Icons & addressbar
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
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:
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
Code: Select all
<a href="newpage.php" target="_blank">New Page</a>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