Currently, I am in the process of setting up a link to Adobe's Aviary web app, and it requires input in a specific format:
<a href="#" onclick="return launchEditor('editableimage1',
'http://www.mywebsite.com/IMAGE.jpg');">Edit!</a>
In order to make this dynamic, I need to replace 'IMAGE.jpg' with a variable name. However, my attempt at coding this has not been successful. I am new to Javascript so any guidance would be greatly appreciated. Here is what I have tried:
<script>
var imgNamePassed = sessionStorage.getItem('imgName');
console.log("imgName", imgNamePassed);
</script>
<a href='#' onclick="return launchEditor('editableimage1','http://www.mywebsite.com/' + imgNamePassed);">LINK TEXT</a>