Amit Singh Tomar
Amit Singh Tomar

Reputation: 8610

How to popup a text file in JavaScript on client side

I am new to JavaScript and I would to like to popup a text file on client-side whenever I clicked on a particular button. Is it possible to achieve it in JavaScript?

Upvotes: 0

Views: 645

Answers (2)

Zaven Nahapetyan
Zaven Nahapetyan

Reputation: 1279

The security issues might not be your concern, but they are the browser's :). The client's browser won't let you do that because it is a security threat to the client.

Upvotes: 2

Sarfraz
Sarfraz

Reputation: 382726

Nope that is not possible for security reasons. Access client files with javascript would have lead to serious security issues if it was possible.

I know you can use FSO in bad IE browser but you should avoid doing that.

Upvotes: 1

Related Questions