Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-29-2006, 10:42 PM   PM User | #1
opofcabo
New to the CF scene

 
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
opofcabo is an unknown quantity at this point
Script to close old window and open new window with new link and specific size

I need a script that will open a new window (popup / new link) in a specific size, but will also close the old window (where the popup came from). I know the popup window is easy but finding a work-able close window script as the new window is opened is impossible!! If anyone can help it would be much appreciated
opofcabo is offline   Reply With Quote
Old 01-29-2006, 10:44 PM   PM User | #2
mentalhorse
New Coder

 
mentalhorse's Avatar
 
Join Date: Jul 2005
Location: Duanesburg, NY
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
mentalhorse is an unknown quantity at this point
Code:
function wclose() {
whatever.close();
}
__________________
Why is a raven like a writing desk?
mentalhorse is offline   Reply With Quote
Old 01-29-2006, 10:54 PM   PM User | #3
Lerura
Regular Coder

 
Lerura's Avatar
 
Join Date: Aug 2005
Location: Denmark
Posts: 869
Thanks: 0
Thanked 112 Times in 111 Posts
Lerura will become famous soon enough
it is a security matter
in NS(possibly FF) javascript is not allowed to close a window that is not opened by javascript, at all.
IE will always prompt if you are trying to do it.

There is no way to get around it
Lerura is offline   Reply With Quote
Old 01-30-2006, 03:02 AM   PM User | #4
glenngv
Supreme Master coder!


 
glenngv's Avatar
 
Join Date: Jun 2002
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
glenngv will become famous soon enough
http://www.codingforums.com/showthread.php?t=76642
__________________
Glenn
_____________________________________________
Play Tower of Hanoi Android app (Ad-FREE!)
Play Tower of Hanoi Android app (FREE!)
Go to Tower of Hanoi Leaderboard
Play Tower of Hanoi Facebook app
glenngv is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


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

Forum Jump


All times are GMT +1. The time now is 01:07 AM.


Advertisement
Log in to turn off these ads.