/    Sign up×
Community /Pin to ProfileBookmark

how to display a word file

I was using
sub=window.open(“http://localhost/MyWeb/test.doc“, “SubWin”, “scrollbars, status”, true) to pop up a new window by clicking on a button to display a word file. Now I don’t want to pop up a new window. I want to display the word file in the original window. Can anybody please tell me how to do that?

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@saeAug 08.2005 — Just link to the word file like you would any other file.

I would sugguest that you convert your word document to a pdf though, so that anyone can read it. Take a look at cutepdf for a free pdf creator.
Copy linkTweet thisAlerts:
@hcarouselauthorAug 08.2005 — I am sorry. I am new to HTML. Could you please tell me the code? I was thinking to use some code like <INPUT name="Submit" TYPE="botton" id="Submit" VALUE="Submit">

Thanks a lot!
Copy linkTweet thisAlerts:
@saeAug 08.2005 — [CODE]<a href="filename.doc">See Word document</a>[/CODE]

or

[CODE]<a href="directory-that-has-word-documents/file.doc">See the doc</a>[/CODE]
Copy linkTweet thisAlerts:
@blah1985Aug 08.2005 — Please note, for most people it will ask to save, or open. not launch word in a browser window.
×

Success!

Help @hcarousel spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.9,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...