Solved

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

Posted on 2004-04-30
2
177 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
  • 2
2 Comments
 
LVL 9

Expert Comment

by:keteracel
Comment Utility
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
Comment Utility
oh, if you're trying to reference a page from the current one, do a relative link like "../../otherdir/index.html"
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now