philmckrackon
Well-known member
I have a page node with HTML and JS. There are many links but I can only get absolute links to work. I would much rather use relative. Here is a code snippet. Will relative links work? Thanks.
I have tried
JavaScript:
document.getElementById("lblYear7174").innerHTML= "<a href=\"https://jeep-cj.com/community/wiki/civilian/#-cj5-1972-1975\" target=\"_blank\">" + value + "</a>";
document.getElementById("imgYear7174").innerHTML= "<a href=\"https://jeep-cj.com/community/wiki/civilian/#-cj5-1972-1975\" target=\"_blank\"><img alt=\"CJ-5\" src=\"https://jeep-cj.com/community/attachments/1972cj5-jpg.101721\" height=\"150\" width=\"150\">";
I have tried
./wiki/civilian/#-cj5-1972-1975\
and .wiki/civilian/#-cj5-1972-1975\
but they do not work.