Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

window.close

Status
Not open for further replies.

ChillPill

Technical User
Joined
Mar 5, 2003
Messages
6
Location
US
Is it possible to force a windows to close with window.close without the user confirmation?
 
Ever get a feeling of deja-vu?

Code:
function bye() {
  self.opener=this;
  self.close();
}
 
Ever get a feeling of deja-vu?


function bye() {
self.opener=this;
self.close();
}
Hope I helped / Thanks for helping
if ((Math.abs(x)<10&&Math.abs(y)<10) && (((parseInt(Math.abs(x).toString()+Math.abs(y).toString())-Math.abs(x)-Math.abs(y))%9)!=0)) {alert(&quot;I'm a monkey's uncle&quot;);}
 
[lol] Hope I helped / Thanks for helping
if ((Math.abs(x)<10&&Math.abs(y)<10) && (((parseInt(Math.abs(x).toString()+Math.abs(y).toString())-Math.abs(x)-Math.abs(y))%9)!=0)) {alert(&quot;I'm a monkey's uncle&quot;);}
 
TheConeHead,
That was a little vague, and didn't work, but thanks for trying.

skiflier,

That was it!!! Thanks bunches. I was finally able to get this finished.

 
if you open a window via window.open ie:

<a href=&quot;#&quot; onclick=&quot;javascript:window.open('index2.html','','.......');&quot;>open</a>

then you can close that window with window.close(); without getting the confirm box
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top