469,887 Members | 1,201 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,887 developers. It's quick & easy.

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 1433
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
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.