K
Karel
All,
I am completely new to Javascript but I have read some articles and
examples
about opening new windows from a webpage.
However I am trying to open a data file ( in html format) that is not
in the server dircetories but somewhere on my unix box.
What I have sofar is:
the script:
function newwindow(url)
{
window.open(url,'jav','width=400,height=600,scrollbars=yes;resizable=yes');
}
the link :
<a href="new.html" onClick="newwindow('file:///tmp/x.html')\">Open
here</a>
.....and nothing happens. If i change the link to
<a href="new.html" onClick="newwindow('/tmp/x.html')\">Open here</a>
.... I get a popup with the warning that the requested URL was not
found on this server.
How can I get a file to display in the popup without putting it on the
server.
Thanks in advance
Regards
KArel Bokhorst
I am completely new to Javascript but I have read some articles and
examples
about opening new windows from a webpage.
However I am trying to open a data file ( in html format) that is not
in the server dircetories but somewhere on my unix box.
What I have sofar is:
the script:
function newwindow(url)
{
window.open(url,'jav','width=400,height=600,scrollbars=yes;resizable=yes');
}
the link :
<a href="new.html" onClick="newwindow('file:///tmp/x.html')\">Open
here</a>
.....and nothing happens. If i change the link to
<a href="new.html" onClick="newwindow('/tmp/x.html')\">Open here</a>
.... I get a popup with the warning that the requested URL was not
found on this server.
How can I get a file to display in the popup without putting it on the
server.
Thanks in advance
Regards
KArel Bokhorst