hyperlinks returns to previous page

G

Guest

Hello,
i have a webpage "page 1" with a hyperlink that correctly opens a new window
with the contents of my "page 2"

now, on "page 2" i have several hyperlinks that are supposed to open pages
in "page 2s" window. However, when selecting the hyperlinks on 'page 2' the
hyperlink result does not appear in 'page 2' window, but is appearing in
'page 1s' window.
how can i make the hyperlinks on 'page 2' open in 'page 2s' window and leave
'page 1' alone?

hope that wasnt too, "who's on first, what's on second"
Costello
 
G

Guest

Hi Robert,

There may be few issues in the source code.

The 2 most possible cases is:

Case 1) Links in Page 2 is using javascript to open other linked pages in
Page 1's window. Link tag will be looked like:
<a href="javascript://;"
onclick="window.opener.location='linked_page.html';">Linked Page</a>

You can fix it by change the href properties as below:

<a href="linked_page.html">Linked Page</a>

Case 2) Page 1 is opened by another web page and given a window name, and
page 2's links open other pages but target to page 1's window. Tags may looks
like:

Link tag in Page 0 (which is open page 1)
<a href="p1.html" target="p1">Page 1</a>
please note that a window name "p1" is given to the new window for display
Page 1

Link tag in page 1
<a href="p2.html" target="p2">Page 2</a>

Link tag in Page 2
<a href="linked_page.html" target="p1">Linked Page</a>
Please note that the target is point to "p1"

You can fix it by removing the target in Page 2's link tag, it may looks like:
<a href="linked_page.html">Linked Page</a>

It may not be helpful for you. If you can show me your website, I can
investigate the problem from the source code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top