Open link wiht new tab

Keryth987
Keryth987

So, is this possible with the current setup? I've tried several different options i found on textile sites, but none seem to function properly on OP. Anyone?

Comments

  • Keryth987
    Keryth987
    Posts: 1,047

    No one has a clue? No one at all how to do this?

  • Kallak
    Kallak
    Posts: 1,090

    There's no method I'm aware of off the top of my head unfortunately. Standard HTML is always an option for such links (though admittedly that was the request).

    All the best,
    - Kallak
  • Johnprime
    Johnprime
    Posts: 252 edited April 2019

    I've never been able to get OP to open links in a new window or tab. I've tried everything I can think of to do it also, but nothing has ever worked. :-(

    Post edited by Johnprime on

    Johnprime

    Deadwood Deacon Banner

    Where the west is really wild!

    The Valley of Life Banner

    The Valley of Life

  • UselessTriviaMan
    UselessTriviaMan
    Posts: 546

    I always just center-click (click down on your mouse's scroll wheel) to open any link in a new tab. Easy-peasy.


    Ptolus, City by the Spire - 2016 Campaign of the Year

    "Please pay attention very carefully, because this is the truest thing a stranger will ever say to you: In the face of such hopelessness as our eventual, unavoidable death, there is little sense in not at least TRYING to accomplish all your wildest dreams in life."  - - Kevin Smith

  • UselessTriviaMan
    UselessTriviaMan
    Posts: 546

    My coworker/buddy knows a lot more HTML than me, and he just talked me through how to set it up. It didn't work, but it should have. It appears that OP has this disabled?

    Adding  target="_blank" should work, but doesn't.


    Ptolus, City by the Spire - 2016 Campaign of the Year

    "Please pay attention very carefully, because this is the truest thing a stranger will ever say to you: In the face of such hopelessness as our eventual, unavoidable death, there is little sense in not at least TRYING to accomplish all your wildest dreams in life."  - - Kevin Smith

  • Keryth987
    Keryth987
    Posts: 1,047

    Yea...seems its either a Textile thing or an OP thing. Perhaps we can get this looked into and added as a capability? Would be a nice thing to have

  • Kallak
    Kallak
    Posts: 1,090

    I'll see if I can work my magic.

    All the best,
    - Kallak
  • Johnprime
    Johnprime
    Posts: 252

    I believe OP has a few of those kinds of things disabled, but I could be wrong. Kind of like what they've done with JS.

    Johnprime

    Deadwood Deacon Banner

    Where the west is really wild!

    The Valley of Life Banner

    The Valley of Life

  • cgregory
    cgregory
    Posts: 780 edited May 2019

    It can be done sort of.  Let me see if I can find the code I've used before.

    nevermind it creates a popup rather than a new tab.
    Post edited by cgregory on

    They are among us!

    image

                       XCom: Defiance - Campaign of the Month November 2016

     

     

  • Keryth987
    Keryth987
    Posts: 1,047

    Popup would work too for what I'm trying to do

     

  • Bortas
    Bortas
    Posts: 645

    Popup was the best I've ever achieved. Watching this thread, though, in case one of you bamf's figures it out!

    -bort

  • Keryth987
    Keryth987
    Posts: 1,047

    Anyone got the code for the said popup?

     

  • cgregory
    cgregory
    Posts: 780

    You can view here

    But at it's most basic you can use this which is just a popup with the word test. The issue is you need to replace spaces and other special characters with the unicode character code ie space is %20

    "Popup2":javascript:(function()%7B%20var%20output=%20%22test%22;%20alert(output);%20%7D)();

    They are among us!

    image

                       XCom: Defiance - Campaign of the Month November 2016

     

     

  • Keryth987
    Keryth987
    Posts: 1,047

    Next Question then is how to embed a Youtube Video in the popup?

  • cgregory
    cgregory
    Posts: 780

    My guess would be to find code that would work outside of OP and then change spaces and other non alphanumeric characters to their percentage encoding equivalent.

    Here is a page where you can add a text and get the percentage encoding equivalent

    https://www.branah.com/unicode-converter

    You could throw

    function(){ var output= "test"; alert(output); })();

    into the unicode text and see the percentage encoding below.

    They are among us!

    image

                       XCom: Defiance - Campaign of the Month November 2016

     

     

  • cgregory
    cgregory
    Posts: 780

    So I managed to make a popup to youtube using

     

    {window.open(" "toolbar=yes,scrollbars=yes,resizable=yes,top=500,left=500,width=400,height=400"); }

    and encoding it in a percent encoding.

     

    The end result being

    "Youtube Popup":javascript:(function()%7bwindow.open%28%22http%3a%2f%2fwww.youtube.com%2fwatch%3fv%3dJ4cnbylnRw4%22%2c%22_blank%22%2c%20%22toolbar%3dyes%2cscrollbars%3dyes%2cresizable%3dyes%2ctop%3d500%2cleft%3d500%2cwidth%3d400%2cheight%3d400%22%29%3b%20%7d)();

    You can see it here

    https://dead-men-tell-no-tales.obsidianportal.com/wikis/jscript

     

    They are among us!

    image

                       XCom: Defiance - Campaign of the Month November 2016

     

     

  • cgregory
    cgregory
    Posts: 780

    Looks like it embedded to video, but basically I used the window.open function

    https://www.w3schools.com/jsref/met_win_open.asp

     

    They are among us!

    image

                       XCom: Defiance - Campaign of the Month November 2016

     

     

  • Keryth987
    Keryth987
    Posts: 1,047

    You are a Godsend CGregory. Now to apply it all over Shadows

     

  • Conan_Lybarian
    Conan_Lybarian
    Posts: 240

    I remembered seeing this thread and wondered if anyone had found an answer. You can use the work around of creating a "Tooltip" and then puting a custom hyperlink in it to click and open, but I wasn't sure if that was close to what you were still working on

Sign In or Register to comment.

March 2024
Wrath of the Highborn

Read the feature post on the blog
Return to Obsidian Portal

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Discussions