PC Review


Reply
Thread Tools Rate Thread

close window button

 
 
=?Utf-8?B?TG91aXM=?=
Guest
Posts: n/a
 
      31st Jan 2005
Hello,
I was looking at some websites and they have a close window button.
Does anyone know how. If html please explain. I am just learning. Frontpage
2002 Windows XP.
Thanks,
Louis Johnson
 
Reply With Quote
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      31st Jan 2005
<input type="button" value="Click Me" onclick="window.opener = self;
window.close()">

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Louis" <(E-Mail Removed)> wrote in message
news:E6247AC4-FFAC-4E6D-AB62-(E-Mail Removed)...
> Hello,
> I was looking at some websites and they have a close window button.
> Does anyone know how. If html please explain. I am just learning.
> Frontpage
> 2002 Windows XP.
> Thanks,
> Louis Johnson



 
Reply With Quote
 
Tom Pepper Willett
Guest
Posts: n/a
 
      31st Jan 2005
<a href="javascript:window.close();">Close Window</a>
--
===
Tom "Pepper" Willett
Microsoft MVP - FrontPage
---
About FrontPage 2003:
http://office.microsoft.com/home/off...tid=FX01085802
FrontPage 2003 Product Information:
http://www.microsoft.com/office/fron...o/default.mspx
Understanding FrontPage:
http://msdn.microsoft.com/office/und...ing/frontpage/
FrontPage 2002 Server Extensions Support Center:
http://support.microsoft.com/default...h;en-us;fp10se
===
"Louis" <(E-Mail Removed)> wrote in message
news:E6247AC4-FFAC-4E6D-AB62-(E-Mail Removed)...
| Hello,
| I was looking at some websites and they have a close window button.
| Does anyone know how. If html please explain. I am just learning.
Frontpage
| 2002 Windows XP.
| Thanks,
| Louis Johnson


 
Reply With Quote
 
Andrew Murray
Guest
Posts: n/a
 
      2nd Feb 2005
<input type="button" onclick="window.close();">

simple.



"Louis" <(E-Mail Removed)> wrote in message
news:E6247AC4-FFAC-4E6D-AB62-(E-Mail Removed)...
> Hello,
> I was looking at some websites and they have a close window button.
> Does anyone know how. If html please explain. I am just learning.
> Frontpage
> 2002 Windows XP.
> Thanks,
> Louis Johnson



 
Reply With Quote
 
Trevor L.
Guest
Posts: n/a
 
      8th Feb 2005
I am trying to automatically close a window after a short delay and this
posting seemed to be relevant

I am opening a window using an onclick which calls Javascript

<a href="images/family-pictures.jpg"
onclick="OpenWindow('images/family-pictures.jpg','Image1');return
false;">
<img src="images/thumbnails/family-pictures.jpg" alt=""></a>

function OpenWindow(ImgName,ImgNo)
{
spawnJimcoPopup
(ImgName,ImgNo,
'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes',
'400','640','0','0','pixel');
return false;

myTimer=setTimeout("window." + ImgName + ".close()",5000);
}

function spawnJimcoPopup(url, name, options, h, w, x, y, scaleType)
{
var windowOptions;
if (scaleType == 'percent')
{ w = (w * screen.availWidth) / 100;
h = (h * screen.availHeight) / 100; }

if (x == 'center')
{ x = (screen.availWidth - w) / 2;
y = (screen.availHeight - h) / 2; }

windowOptions = options + ',width=' + w + ',height=' + h + ',left=' + x +
',top=' + y;
newWindow = window.open(url, name, windowOptions);
newWindow.focus();
}


The function spawnJimcoPopup works perfectly (of course) but the timeout
does not. I want to display the new window for 5 seconds and then have it
close automatically, but nothing happens.

I am sure there is something wrong with the call to the setTimeout function
but I can't see what

All help appreciated
--
Cheers,
Trevor L.


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to close the parent and all child forms together at once when click on parent window's close button X. VBLearner Microsoft VB .NET 2 25th Sep 2006 05:57 AM
How do I use a <asp:button> to close a window =?Utf-8?B?RWQgQ2hpdQ==?= Microsoft ASP .NET 2 29th Oct 2004 05:24 AM
IE Close button will not close a window Robin Windows XP Internet Explorer 0 26th Jan 2004 06:25 PM
How to disable the Window close 'X' button in any open window Amit Microsoft Windows 2000 1 11th Sep 2003 12:52 PM
close button does not close window tim Windows XP Basics 0 9th Sep 2003 02:13 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:36 PM.