开发者

Popup window in ASP with image

Can I have a popup window in ASP page when I click on a hyperlink? And on that popup, c开发者_开发问答an I display my image?


The simplest and most basic way would be <a href="path_to_image" target="_blank">link text</a> which will open the link in a new browser window.


<A HREF="javascript:void(0)"
onclick="window.open('images/myimage.jpg',
'imagePop','width=300,height=200,menubar=yes,status=yes,
location=yes,toolbar=yes,scrollbars=yes')">
Open a new window</A>

Change the yes values to no if you don't want them, experiment!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜