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 10-10-2012, 03:10 PM   PM User | #1
pssngli
New to the CF scene

 
Join Date: Oct 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
pssngli is an unknown quantity at this point
Javascript Open New window

Hi

I have a window.open in one of my jsp page that opens a new window and the child window does some processing and then redirects to another URL, for eg

Parent.jsp triggers child.jsp
within child.jsp i have window.location="abcd.com"

now when i click on the link in Parent.jsp it opens a new window , but i want it to open the same child window it opened earlier.

Is there a way to always open the same window , if yes can anyone please help me with it
pssngli is offline   Reply With Quote
Old 10-10-2012, 03:47 PM   PM User | #2
WolfShade
Regular Coder

 
Join Date: Apr 2012
Location: St. Louis, MO, USA
Posts: 946
Thanks: 7
Thanked 97 Times in 97 Posts
WolfShade is an unknown quantity at this point
Give them all the same name.

window.open('document.html','Name','arguments');

If every click opens a window with 'Name', all links will use the same object if it's already open.
__________________
^_^

If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
*
The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".
WolfShade 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 08:06 AM.


Advertisement
Log in to turn off these ads.