Set up a close window function using interactive button

J

jbtigersrock1

I am trying to set up a button that matched the rest of my buttons using FP
and I need that button to close a window. Using this code I can get a link to
close the window but I can't get the button to do it. Any suggestions?

<a href="#" onclick="window.close()">
Close Window</a>
 
D

David Berry

<form>
<input type="button" value="Close Window" onClick="window.close();">
</form>
 
J

jbtigersrock1

That worked but I need it to match the buttons I am using from frontpage.
Thanks.
 
D

David Berry

What buttons? That should look like every other form button. Is there a
URL where we can see what you mean?
 
T

Thomas A. Rowe

You need to copy the image, add your text, then import and insert on your page, then create a
hyperlink.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
D

David Berry

Those aren't buttons. They're graphics. Just put the <a href code around
the image tag.
 
R

redemption2

You're using those built in FP button formats, aren't you? Just do an
onclick in the <a> tag in front of the button. The FP button formats don't
use onclick, just onmouseup/onmousedown/onmouseover/onmouseout. The onclick
should still work.
 
J

jbtigersrock1

That worked! Thanks!

redemption2 said:
You're using those built in FP button formats, aren't you? Just do an
onclick in the <a> tag in front of the button. The FP button formats don't
use onclick, just onmouseup/onmousedown/onmouseover/onmouseout. The onclick
should still work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top