?
Solved

Changing button appearance

Posted on 2003-03-03
3
Medium Priority
?
468 Views
Last Modified: 2010-04-17
With a standard Javascript 'Close Window' form code, how  can I change the appearance of the button it produces
0
Comment
Question by:richardmt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 1

Accepted Solution

by:
spiritwithin earned 200 total points
ID: 8058519
Sorry, this answer is relatively unclear. I assume that what you mean is a normal button. Let's face it:

To close a window from inside html go like that:

<html>
 <body>
 <input type=button value="Close Window" onclick="self.close()">
 </body>
</html>

If you want the button to look different, you should make use of CSS, so for example - go like that:

<input type=button value="Close Window" onclick="self.close()" style="border: 1px solid #cdcdcd; background: #eaeaea; color: #345434; font-family: Verdana, Arial; font-size: 11px;">

This gives your button some nice style. However, about your script thing, you should note that if you call it from a parent window (meaning that the window you have the button inside is the first one opened and was not popped up by some script), at least internet explorer will ASK THE USER if it may close the window.

Sorry if all of that does not match your question, does not represent an answer for it, but i really dont get your question.

Cheers & kind regards.
0
 

Expert Comment

by:CleanupPing
ID: 9447391
richardmt:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Starting up a Project

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question