|
-
Jan 15th, 2006, 12:26 PM
#1
Thread Starter
Fanatic Member
[RESOLVED] can javascript read file?
Hi,
I tried to read a text file useing javascript..but it seems not to work
I tried two methods but neither works..
I will be happy if you can help me out...
thanks
VB Code:
<html>
<body>
<script>
var fname;
function winOpen(fname) {
window.open(""+fname+"","toolbar=no,status=no,menubar=no,scrollbars=yes,left=50,top=100,width=250,height=400")
}
</script>
<a href="javascript:winOpen('text.txt')">my text file to read</a>
<form>
<input type=button value="read this text file" onClick="winOpen('text1.txt')"
</form>
</body>
</html>
Last edited by merhaba; Jan 15th, 2006 at 01:33 PM.
-
Jan 15th, 2006, 02:04 PM
#2
Thread Starter
Fanatic Member
Re: can javascript read file?
I got the solution ...thanks
function winOpen(fname) {
window.open ("text1.txt",
"mywindow","menubar=1,resizable=1,width=350,height=250");
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|