0

I need your quick help.

In my web site I have a list of clients with links to their user details.

I used

window.open();return false;

and this opens each profile in new window.

  1. now in the new opening window I have link, which I want to open in another new window/

I tried

window.opener.open();return false;

but it opened in this same window.

How can it be opened in another new window(FF,explorer)??.

  1. I want also to use the above code with Ajax, in my search page. The problem is, that it also not opening the new window because the link located in the Ajax. how can i open links from Ajax in new window??

Any ideas?

Thanks!!!

undone
  • 7,857
  • 4
  • 44
  • 69
Sara Dina
  • 39
  • 1
  • 6
  • I am unable to follow you. you have a window with a link that opens a new window and from it you would like to open a new window. why not just use window.open on that new window? – AMember Nov 04 '12 at 14:05
  • I think you should rethink those wndow open strategies. Opening a window from a window, then in that one opening another one on click, is not a too good experience. I think you should do both in the first window, using some javascript to reveal new divs (or whatever) with javascript. – Eduárd Moldován Nov 04 '12 at 14:15

4 Answers4

0

Providing height and width to open. this will make sure that new window always open as popup.

window.open(url, 'name', "height=500,width=700"); return false;
Anoop
  • 23,044
  • 10
  • 62
  • 76
0

Well you can access window.parent from your window object and call a function that will open another window

Kirill Ivlev
  • 12,310
  • 5
  • 27
  • 31
0

Use Window.open() in the opened window.

kjana83
  • 398
  • 3
  • 16
0

So you have : (1) Page with a link -> (2) opens a popup with a link -> (3) opens another popup

Every link which has to open a popup will call the javascript function window.open. As @Sushil pointed out, if the new window has to look like a regular popup, set width and height to it.

If you want to implement the popups using AJax, use jQuery. Here is a very good example for a simple popup implementation.

Community
  • 1
  • 1
janenz00
  • 3,315
  • 5
  • 28
  • 37
  • Thank you! when I click on the link in the **new** window(2) it redirects, not open the (3) in new window. Maybe it impossible. – Sara Dina Nov 04 '12 at 14:43