diff --git a/src/js/pannellum.js b/src/js/pannellum.js index 859cdc6..f542a53 100644 --- a/src/js/pannellum.js +++ b/src/js/pannellum.js @@ -1707,7 +1707,7 @@ function createHotSpot(hs) { } else if (hs.URL) { a = document.createElement('a'); a.href = sanitizeURL(hs.URL); - a.target = '_blank'; + a.target = hs.target ? hs.target : '_blank'; renderContainer.appendChild(a); div.className += ' pnlm-pointer'; span.className += ' pnlm-pointer';