473,378 Members | 1,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Bookmark code for major browser

190 100+
HI Guys,

I need bookmark code for all major browser , i searched all the way but i could not get the result :( . Could any body share the link.

Here my code wok partially

Expand|Select|Wrap|Line Numbers
  1.  var url = this.href;
  2.  var title = document.title;
  3.  
  4. if (window.sidebar) { // Mozilla Firefox Bookmark
  5.  window.sidebar.addPanel(title, url,"");
  6. } else if( window.external ) { // IE Favorite
  7.                         window.external.AddFavorite( url, title);
  8. } else if(window.opera) { // Opera 7+
  9.     return false; 
  10. // do nothing - the rel="sidebar" should do the trick
  11. }
  12. else if(window.chrome){
  13. alert('Press ctrl+D to bookmark (Command+D for macs) after you click Ok');    } 
  14. else { // for Safari, Konq etc - browsers who do not support bookmarking scripts (that i could find anyway)
  15.                          alert('Unfortunately, this browser does not support the requested action,'+ ' please bookmark this page manually.');
  16.                     }
  17.  
Its not work IE 7, Chrome,opera. Partially work in Mozilla.

Help me pls
Jul 11 '11 #1
0 1081

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: billium99 | last post by:
Hello - I'm a newbie and I've been bashing my brain against IIS for about 5 hours now. I'm just trying to set up a testing server via Dreamweaver that is my local box. HTML works fine and ASP...
3
by: Tim Kelley | last post by:
When I hit an asp page the code for the page is displayed, not the actual page. I am running IIS locally for development. Any ideas of why this would be? If the pages are loaded on the server,...
1
by: Nathan DeBardeleben | last post by:
This may seem wierd, and I know someone asked this question before but was told they were doing it the hard way. Unlike them, I do not have shell access to the machine where this javascript runs....
1
by: ChrisR | last post by:
Hi everyone I have a 2002 Access MDB, which uses a HTML page with bookmarks in it, as a Help File. The problem is not accessing the help file, but opening it to the proper bookmark. I use...
0
by: Derek | last post by:
Hi All, I am trying to build a web based application using ASP.NET that I can use to store and retrieve source code samples. The question I have is what is the best way to store information that...
3
by: John Carnahan | last post by:
How would I accomplish the following ? Navigate to a bookmark on a page from a routine in the code behind. ---- html code bookmark1 (someplace on the page... is this an htmlanchor?) ??...
1
by: news.austin.rr.com | last post by:
hi im using the following code below to gain access to a browser control document. mshtml.IHTMLDocument2 doc = axWebBrowser1.Document as mshtml.IHTMLDocument2; can i use the "doc" object...
1
by: Ryan Rife | last post by:
I'm trying to return a 401 statuscode to the client browser on my web site, however whenever I do this I get a 302 statuscode redirecting me to my login page. Any ideas on how to prevent the...
1
by: quushich | last post by:
Hi all... Is there special code to add a "Bookmark this page" link to a mobile page for use on mobile devices? Or are there too many variances in mobile phones to have a set code? I found...
14
by: Mohamed Mansour | last post by:
Hey there, this will be somewhat a long post, but any response is appreciated! I have done many PInvoke in the past from C++ to C#, but I did PInvoke within C# not C++/CLI. Can someone explain...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.