<script type="text/javascript" language="JavaScript">
function GetContentWnd() {
return parent;
}
function OnAddFavorite() {
var oWnd = GetContentWnd();
if (document.all)
window.external.addFavorite(oWnd.location.href, oWnd.document.title);
else if (window.sidebar) // firefox
window.sidebar.addPanel(oWnd.document.title, oWnd.location.href, "");
else
alert('Sorry, your browser does not support!');
}
</script>
下面的連結
<asp:Hyperlink id="Hyperlink1" runat="server" NavigateUrl="javascript:OnAddFavorite();">加入我的最愛</asp:Hyperlink>
沒有留言:
張貼留言