homepage Welcome to WebmasterWorld Guest from 54.211.73.232
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Browsers / Firefox Browser Usage and Support
Forum Library, Charter, Moderators: incrediBILL

Firefox Browser Usage and Support Forum

    
Bookmark us doesn't work in Firefox
but work in IE
rowtc2

5+ Year Member



 
Msg#: 3324924 posted 6:04 pm on Apr 28, 2007 (gmt 0)

I have a website and the link Bookmark us work in IE,but does't work in Firefox
<a href="#" onClick="window.external.AddFavorite(location.href,document.title);">Bookmark us</a>

Error :
window.external has no properties
What should i do?

 

tedster

WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3324924 posted 7:49 pm on Apr 28, 2007 (gmt 0)

Yes, that script is IE only.

I've seen scripts that claim to work on other browsers including Firefox, but what they do is open up the side panel and the user still needs to create the bookmark manually. If you want to display such a link, I would suggest scripting it so that in only displays in IE -- and then call it "Add to Favorites" which is Microsoft-speak (they like to rename things.)

dreamcatcher

WebmasterWorld Senior Member dreamcatcher us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3324924 posted 11:35 am on May 1, 2007 (gmt 0)

You could try this one at Dynamic Drive:
[dynamicdrive.com...]

dc

LunaC

5+ Year Member



 
Msg#: 3324924 posted 1:07 pm on May 5, 2007 (gmt 0)

That one claims to work in Firefox, but when the bookmark is visited it loads in the sidebar... not the main window.

I've tried a few times to find a fix but was told on the Mozilla forums there was no way to do this.

dreamcatcher

WebmasterWorld Senior Member dreamcatcher us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3324924 posted 6:56 am on May 23, 2007 (gmt 0)

Try this:

<script type="text/javascript">
function bookmarksite(title,url){
if (window.sidebar)
window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){
var elem = document.createElement('a');
elem.setAttribute('href',url);
elem.setAttribute('title',title);
elem.setAttribute('rel','sidebar');
elem.click();
}
else if(document.all)
window.external.AddFavorite(url, title);
}
</script>

And then:
<a href="javascript:bookmarksite('Your Website', 'http://www.example.com')">Add</a>

dc

[edit] Sorry, that does the sidebar thing too. Looks like it has to be the sidebar.

piatkow

WebmasterWorld Senior Member piatkow us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 3324924 posted 2:24 pm on Jun 1, 2007 (gmt 0)

Bookmark scripts look a bit cheesy anyway. There are perfectly good utilities shipped with the browser for bookmarking pages.

Xapti

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 3324924 posted 10:13 pm on Jun 13, 2007 (gmt 0)

Automated bookmarking is not a good idea. If a person wants to bookmark a site, they do it themselves, I just don't understand why it's done any other way.
If you want the person to bookmark your site, just ask them to.

Lobo

5+ Year Member



 
Msg#: 3324924 posted 10:19 pm on Jun 13, 2007 (gmt 0)

A little bookmark button is not such a big hassle and it is a nice after thought, I suspect that it must increase your bookmark-age by between 25% - 50% not all people think the same and to have a little button that just does it for you, well why not..

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Browsers / Firefox Browser Usage and Support
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved