[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 166
  • Last Modified:

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?
0
ppmb
Asked:
ppmb
  • 4
1 Solution
 
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
 
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

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now