Small pop up window with a close button

How can I make a small pop up window with a close window button when I click on a link in Frontpage?
ppmbAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mgoergenCommented:
I guess you mean s.th. like that

please note that the line win_id ... until the "}" is one line!

change the seite.html in this statement to any url you like.

in the this html page enter a

<a href="javascript:window.close()">window close</a>

in the html part.

the sample code!

<html>
<script language="JavaScript">

<!--
function winopen() {
      win_id = window.open("seite.html","tt","toolbar=0,location=0,directories,status=0,menubar=0,scrollbars=1,resizable=1,width=420,height=550");
}
//-->

</script>


<head>
<title>Neue Seite 1</title>
</head>

<body>

<p><a href="default.htm" onclick="winopen()">sdgf</a></p>
</body>
</html>
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ppmbAuthor Commented:
Well, actually, I need a real BUTTON that says "CLOSE"
and the window is smaller in size! I have a hyperlink on the home page and want to pop up a smaller size IE with a "CLOSE" button on it. I have tried your code but that just didnt look like what I meant! If you can elaborate more and get to what I want, I will give you credit for your answer. If not, I will reject ... ! Sorry!
0
mgoergenCommented:
which button?

a form button or an image?

do see the entries width and height?

change it to your personal whiches so it should be no problem for you to resize it.
0
mgoergenCommented:
here is the button version put this code instead of the "<a href="javascript:window.close()">window close</a>"

<form onclick="javascript:window.close()">
  <p><input type="button" value="Close" name="B1"></p>
</form>

Tell me if you need more info´s but normaly no questions should be left
0
mgoergenCommented:
Hi

Still questions left or is everything clear now?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development Software

From novice to tech pro — start learning today.