HTML Anchor

asp.net web forms - 实例

html anchor

<script  runat="server">

sub page_load
   link1.href="http://www.yapf.com"
   link1.target="_blank"
   link1.title="w3cschool"

   link2.href="http://www.microsoft.com"
   link2.target="_blank"
   link2.title="microsoft"
end sub
</script>


<!doctype html>
<html>
<body>

<form runat="server">
<a id="link1" runat="server">visit w3cschool!</a>
<br>
<a id="link2" runat="server">visit microsoft!</a>
</form>

</body>
</html>
相关文章