I'm using the code on page, <WebPartPages:PictureLibrarySlideshowWebPart adding links, for adding the link to the slideshow pic webpart but I'd like to open the link in the same tab/window. Is it possible? If so, please suggest the lines of codes to make this happen.

<script type="text/javascript">
function SlideshowObjectInitializer() {
  ShowPic = (function(ShowPicOrig) {
      return function() {
           var ssObj = arguments[0];  //SlideShow object
           var curPicIdx=ssObj.index; //current picture index
           ShowPicOrig.apply(this, arguments); //call original ShowPic
           ssObj.link.href = '';  //<--put your custom picture link url here 
ExecuteOrDelayUntilScriptLoaded(SlideshowObjectInitializer, 'imglib.js');
  • What is the value of ssObj? Is ssObj an anchor tag? Commented Dec 27, 2016 at 4:46


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.