• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 232
  • Last Modified:

Displaying text for html page

Hi

I want to display the text for webpage using html or javascript

can you please suggest
0
praveen1981
Asked:
praveen1981
  • 2
1 Solution
 
leakim971PluritechnicianCommented:
what about : document.getElementsByTagName("html")[0].innerHTML

alert( document.getElementsByTagName("html")[0].innerHTML ); // alert text of the page
0
 
praveen1981Author Commented:
I did it by using the title tag , which solved the problem.

<title id ="t1" > ABC </title>

0
 
praveen1981Author Commented:
this solved
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now