Home  >  Article  >  Web Front-end  >  javascript addBookmark Add to favorites Multi-browser compatible_javascript skills

javascript addBookmark Add to favorites Multi-browser compatible_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:48:101335browse
复制代码 代码如下:

function addBookmark(title,url) {
if (window.sidebar) {
window.sidebar.addPanel(title, url,"");
} else if( document.all ) {
window.external.AddFavorite( url, title);
} else if( window.opera && window.print ) {
return true;
}
}
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn