View Full Version : Bookmarked Site Opening In A Frame

01-10-2011, 02:04 AM
1) Script Title: Bookmark Site Script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex9/addbook.htm

3) Describe problem: When I click "bookmarks" and select the page I have this script on, it opens the page in a small frame (150 pixels or so wide) on the left hand side of my currently opened window rather than opening it in place of my current window. I'm using a newer version of Firefox, if that has anything to do with it.

01-10-2011, 12:31 PM
Yes it does, and no it doesn't.

It does create a 'sidebar' bookmark in Firefox (all Mozilla based browsers, perhaps others). It doesn't matter that you're using a newer version. It's been doing this since before I can remember. Others, including myself have tried to make this an ordinary bookmark in Firefox. I'm not aware of any who've succeeded. So, as far as I know, it's either that, or no bookmark in those browsers. The user may always convert it to an ordinary bookmark later. I think it's just a checkbox that needs to be ticked or unticked, or something relatively simple like that.

I could be wrong about no one ever figuring that out though. If there's any information about that on this forum, it would probably be in this thread:


01-10-2011, 07:08 PM
Thanks for the reply. Any idea where I can get a bookmark script I can use with an image that doesn't do this?

01-11-2011, 09:40 AM
hi...i've been using this for my bookmarks but i don't really use firefox..just chrome and apple..


i don't know if this helps but try..

01-11-2011, 10:54 AM
Thanks for the reply Cindylou, but that's the one I'm using. All of my other bookmarks are opening in their full window so it's not Firefox itself, it's something to do with the script. Maybe there's a modification that can be made to keep this from happening?

01-11-2011, 12:59 PM
It is Firefox itself. As I said, there's no other way I'm aware of to use javascript to get Firefox to even make a bookmark. So it's either that or no bookmark. What this is known as is a sidebar bookmark. At the time of its creation or at any time by editing its properties later, all the user has to do to make it a regular bookmark is to untick the checkbox labeled:

Load this bookmark in the sidebar

I know this isn't the answer you are looking for, and there may be some clever way around it. If there is, I've never heard of it, and I suspect there really isn't.

The best I can think of would be to detect Firefox and alert the user so that they may untick that box at the time the bookmark is created:

<script type="text/javascript">

* Bookmark site script- Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code

/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar){ // firefox
alert('This will create a "sidebar" bookmark. Untick the:\n\n"Load this bookmark in the sidebar"\n\ncheckbox to make it a normal bookmark.');
window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
var elem = document.createElement('a');
else if(document.all)// ie
window.external.AddFavorite(url, title);

01-11-2011, 09:54 PM
Ahh, I see. Other sites don't do that because I manually added them :D