Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Regular Coder
    Join Date
    Apr 2012
    Location
    St. Louis, MO
    Posts
    985
    Thanks
    7
    Thanked 101 Times in 101 Posts
    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".


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •