472,114 Members | 1,402 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,114 software developers and data experts.

pop up window using javascript

hi how can I open this link in new pop up window using javascript?
<asp:HyperLink id="HLink_Amex" runat="server" NavigateUrl="images/cvv_amex.gif">Amex?</asp:HyperLink>

--
mahsa
Nov 18 '05 #1
2 1505
mahsa,

Try set Target=_blank

Thomas Andersson

"mahsa" wrote:
hi how can I open this link in new pop up window using javascript?
<asp:HyperLink id="HLink_Amex" runat="server" NavigateUrl="images/cvv_amex.gif">Amex?</asp:HyperLink>

--
mahsa

Nov 18 '05 #2
And if you're not generating the URL or the HyperLink control dynamically in
code, you might be better off using a standard HTML Anchor as in

<A href="images/cvv_amex.gif" target="_blank">Amex?</A>

Why have a runat="server" when the server isn't adding anything to the
picture? It's a waste of server resources.

Dale Preston
MCAD, MCSE, MCDBA
"crexes" <cr****@discussions.microsoft.com> wrote in message
news:90**********************************@microsof t.com...
mahsa,

Try set Target=_blank

Thomas Andersson

"mahsa" wrote:
hi how can I open this link in new pop up window using javascript?
<asp:HyperLink id="HLink_Amex" runat="server" NavigateUrl="images/cvv_amex.gif">Amex?</asp:HyperLink>
--
mahsa

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

13 posts views Thread by Kai Grossjohann | last post: by
12 posts views Thread by HarveyB | last post: by
10 posts views Thread by Marshall Dudley | last post: by
32 posts views Thread by Eli | last post: by
2 posts views Thread by Shelly | last post: by
11 posts views Thread by V S Rawat | last post: by
2 posts views Thread by kurt sune | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.