If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

My question - can this code be modified so the link opens up in the same window instead of a new one? I presume any changes would occur in the Head portion of the script, but everything I've tried was uneventful.
Thank you very much for your assistance.

The slideshow is intended to be used an internal link to another page within my site. 99% of the links on my site are internal; therefore, they all open in the same window. For continuity, I want the slideshow to do the same.

The script in question forces open a new window. I want to override that. Is this a possibility?

I appreciate any assistance or alternative recommendations. Thank you very much.

The second parameter of window.open() is a string representing the name of the target window.

Set it to: "_self"

Code:

winslide=window.open(slidelinks[whichlink], '_self', false);

Be aware that your code is very antiquated.

<script language=javascript> is long deprecated and obsolete. Use <script type = "text/javascript"> instead (in fact also deprecated but still necessary for IE<9).
The <!-- and //--> comment (hiding) tags have not been necessary since IE3 (i.e. since September 1997). If you see these in some published script it is a warning that you are looking at ancient and perhaps unreliable code.

Last edited by Philip M; 02-12-2013 at 05:11 PM.

All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.