Forum Moderators: open
This is a popup page that displays an extra large version of an image in an e-commerce site. The correct url of the image seems to be passed because when I document.write the xlimgurl variable it displays the correct path. However, when I try to use document.write to display this image, I get a blank image as if it can't find the image.
Here's what I have:
<script language="javascript">
var loc=window.location.search;
loc=loc.substring(1,loc.length);
var xlimgurl=loc;
document.write (xlimgurl);
document.write("<br><img src='" +xlimgurl+ "'>");
</script>
<br><br>
<button name="close" style="background-color: navy; font-weight: bold; color: #FFFFFF; border: 1px solid lime" onClick="self.close()">Close</button><br><br>
I'd be really grateful for any tips.
Thanks,
kelly