Solved

Mozilla (firefox) bookmarklet to open a new window with a local page

Posted on 2004-04-30
2
196 Views
Last Modified: 2008-03-06
Using a bookmarklet, I am trying to open a window with an htm file that is on my local drive.

When I try this script nothing happens...
javascript: void(window.open('file:///D:/Internet/Pages/page.htm',1,'outerWidth=330,outerHeight=315,screenX=400,screenY=320'))
(yes, the path is correct)

I know that everything is correct except the reference to the local file because if I substitute an internet site using http:// etc  the window opens correctly. Is there some other way to reference a local hard drive file?
Thanks
0
Comment
Question by:steve44
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 9

Expert Comment

by:keteracel
ID: 10968622
why not drag the file into firefox then bookmark it?

I have problems with mozilla-based programs and accessing the local drive too... So I just do what I've said above!
0
 
LVL 9

Accepted Solution

by:
keteracel earned 250 total points
ID: 10968628
oh, if you're trying to reference a page from the current one, do a relative link like "../../otherdir/index.html"
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Matthew
I am a very big proponent of technology compliance standards and strive to meet such criteria in all of my work. That includes my site, which is 100% XHTML 1.0 compliant as determined by the World Wide Web Consortium. https://www.matthewstevenkel…
Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question