www.webdeveloper.com
Results 1 to 2 of 2

Thread: new window popped from a bookmark (problem)

  1. #1
    Join Date
    Jan 2009
    Location
    CA
    Posts
    1

    new window popped from a bookmark (problem)

    I'm trying to use a javascript bookmarked in Firefox to pop Google Docs open into a new window. This works good and well, but there is a problem when I try to use the links within Google Docs in that new window. When I click on a document link, it would normally open as a new tab in that window. However, it is now opening new docs back in the parent window (the one from which I clicked the bookmark to open Google Docs)--it won't open them within a new tab in the new window.

    Here's the code I have bookmarked to open Google Docs as a new window:
    javascript: void window.open('http://docs.google.com','gooDocWin','width=1000,height=700')

    Why a new window? Because I Google Docs documents have a bulky menu bar section, and I'd like to have windows open by default without the Firefox menus, location, nav, and bookmarks bar in addition to the document's menus.

  2. #2
    Join Date
    Feb 2008
    Posts
    1,666
    JavaScript Bookmarklets execute as if they were part of the main window. Thus, it is no wonder, to me, that you are seeing such behavior. And, no, sorry, I don't have a solution for you.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles