HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 10th, 2000, 09:55 AM
mroberts mroberts is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 1999
Location: Bristol, VA USA
Posts: 6 mroberts User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I have a window that has a link on it to open an application. The window that spawned the new window is still open. I have a button on the application that will take them to the original window. (placing focus on it) If they closed the original window, then I want to open it again if they click the button. Basically, I need to check to see if the original window is open. If it is, I want to place focus on it. If the original window is not open any more, I want to open a window and bring the original page back up. Here is what I have:

<!--
function winclose() {
Win=top.opener;
if (window.Win!=true) {
window.open ("http://www.whatever.com");
}else{
Win.focus();
}
}
// -->

With this code it will always open the new window whether the original one is open or not.

Thanks for any help.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Windows


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT