Solved

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

Posted on 2004-04-30
2
189 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows Standards for file storage. 3 37
error email attachment VB2010 5 56
Display recordset field HTML encoded 21 57
recommended CMS for the website revamp 3 100
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
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:
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

731 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