javascript - Pop-up window when clicking on an image in my HTML page -
i know question has been asked before, mine little different.
i know tthat popup of thumbnail have use javascript , give te image location. however, want this;
<img src="test.png" alt="test1" width=32 height=32 onclick="openwin(test.png)"></a> where test.png picture queried database in sqlplus. not have local copy , not know path id. when write javascript function this, wrote:
<script language="javascript"> function openwin(img) { window.open(img); } </script> however, keep getting url\image.png not exist. how can working? has work arbitrary number of images, depending on how many meet requirements of query.
the test.png not exist, wanted see becuase shows broken image icon in table, when click on it, says url not exist.
screw javascript. don't need javascript this. lose 'onclick' , put 'target="_blank"' in 'href' tag around 'img' tag.
example:
<a href="yourlink" target="_blank"> <img src="test.png" alt="put more exciting here." width="32" height="32" /> </a> all good? way, isn't php, friend. hehe. wrong hashtag.
Comments
Post a Comment