---
title: "设为首页和添加收藏代码"
author: "boss5518831534"
date: "2012-11-07T17:59:47Z"
tags: []
categories: ["Web前端"]
slug: "untitled"
draft: false
lastmod: "2012-11-07T17:59:47Z"
id: 1718621
url: "https://garson.iteye.com/blog/1718621"
---

&lt;a href=# onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.######.com/');"&gt;设为首页&lt;/a&gt;

&lt;a href="javascript:window.external.AddFavorite('http://www.######.com/','懒人图库')"&gt;收藏本站&lt;/a&gt;