Page Close

W

william Cook

Is it possible to have a button that closes the page down?
I would like to give the visitor the option of
clicking "close" in liew of going up to the close X in the
upper right hand corner of the screen.
 
S

Steve Easton

<input type="button" value="Close Page" Onclick="parent.close()">

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
W

William Cook

I thank You for the information. But I'm new to all this
and don't know where to type in this line you provide me.
I insert it the script for the page and nothing happens.
I guess I need more help.
 
A

Andrew Murray

you will need to do it in code view at the position you want the button to be
shown.
 
W

William Cook

I've insert the line in (on the HTLM page view)at the
point I wanted it to appear and still nothing.

This is a copy of what I did:
<tr>
<input type="button" value="close Page"
onclick="parent.close()">
<td width="131"><img border="0" src="j0395694.gif"
width="64" height="58"></td>
<td width="414">&nbsp;</td>
</tr>


What am I doin wrong?
 
T

Thomas A. Rowe

Instead of using a form button, just insert the following:


<a href="javascript:void(0);" onclick="window.close();">Close This Window</a>


--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
S

Stefan B Rusynko

Your form filed is in an illegal place (not in a table cell) and is not in a form tag
Try:

<tr>
<td width="131"><img border="0" src="j0395694.gif" width="64" height="58">
</td>
<td width="414">
<form><input type="button" value="close Page" onclick="parent.close()"></form>
</td>
</tr>





| I've insert the line in (on the HTLM page view)at the
| point I wanted it to appear and still nothing.
|
| This is a copy of what I did:
| <tr>
| <input type="button" value="close Page"
| onclick="parent.close()">
| <td width="131"><img border="0" src="j0395694.gif"
| width="64" height="58"></td>
| <td width="414">&nbsp;</td>
| </tr>
|
|
| What am I doin wrong?
|
| >> Onclick="parent.close()">
| at th point on the
| >-----Original Message-----
| >you will need to do it in code view at the position you
| want the button to be
| >shown.
| >
| >"William Cook" <[email protected]>
| wrote in message
| >| >> I thank You for the information. But I'm new to all
| this
| >> and don't know where to type in this line you provide
| me.
| >> I insert it the script for the page and nothing happens.
| >> I guess I need more help.
| >>
| >> >-----Original Message-----
| >> ><input type="button" value="Close Page"
| >> Onclick="parent.close()">
| >> >
| >> >--
| >> >Steve Easton
| >> >Microsoft MVP FrontPage
| >> >95isalive
| >> >This site is best viewed............
| >> >........................with a computer
| >> >
| >> >"william Cook" <[email protected]>
| >> wrote in message
| >> >| >> >> Is it possible to have a button that closes the page
| >> down?
| >> >> I would like to give the visitor the option of
| >> >> clicking "close" in liew of going up to the close X
| in
| >> the
| >> >> upper right hand corner of the screen.
| >> >
| >> >
| >> >.
| >> >
| >
| >
| >.
| >
 
Top