File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Problem with Javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply locked New topic

Problem with Javascript

Ameet Gulhane

Joined: Apr 07, 2006
Posts: 4
we r showing the content file in javascript by document.write() method
for example document.write(<h1>Something</h1> ;
But i want to show this static content in a alert box with the output of that static file.
i was already tried for it but it was showing directly the texts not the output of that static content file.
So please help me to resolve this problem.
marc weber

Joined: Aug 31, 2004
Posts: 11343

JavaScript is definitely not on the SCJP exam, so I'm moving this to the HTML and JavaScript forum.

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63540

So are you "Rupashree Naya" or "Ameet Gulhane"?

I find it difficult to believe that two different people would post the exact same question including all the same mis-spellings.

In any case, please do not cross-post the same question in more than one forum.

This one has been closed.
[ June 14, 2006: Message edited by: Bear Bibeault ]

[Asking smart questions] [About Bear] [Books by Bear]
subject: Problem with Javascript
It's not a secret anymore!