Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Question

fixed formatting, plus some words to allow length
Source Link
request.open("GET", selectedTab + ".html", true);

Will this respond me back with the whole html page or just the text part in some specific tags, as if. If my html page has images and paragraphs, what exactly will be retured to me in my request object, and how can i use individual tags(using javacript), if it returns them all?

For example, say my html file is

hello

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head> 
<link type="text/css" href="something" rel="stylesheet">
</head>
<body>
<p>hello</p>
<img src="something.jpg" />
</body>
</html>

now how do i get the individual coponents of the file.

request.open("GET", selectedTab + ".html", true);

Will this respond me back with the whole html page or just the text part in some specific tags, as if my html page has images and paragraphs, what exactly will be retured to me in my request object, and how can i use individual tags(using javacript), if it returns them all?

say my html file is

hello

now how do i get the individual coponents of the file.

request.open("GET", selectedTab + ".html", true);

Will this respond me back with the whole html page or just the text part in some specific tags. If my html page has images and paragraphs, what exactly will be retured to me in my request object, and how can i use individual tags(using javacript), if it returns them all?

For example, say my html file is

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head> 
<link type="text/css" href="something" rel="stylesheet">
</head>
<body>
<p>hello</p>
<img src="something.jpg" />
</body>
</html>

now how do i get the individual coponents of the file.

added 455 characters in body
Source Link
Kraken
  • 24.4k
  • 38
  • 115
  • 166
request.open("GET", selectedTab + ".html", true);

Will this respond me back with the whole html page or just the text part in some specific tags, as if my html page has images and paragraphs, what exactly will be retured to me in my request object, and how can i use individual tags(using javacript), if it returns them all?

say my html file is

hello

now how do i get the individual coponents of the file.

request.open("GET", selectedTab + ".html", true);

Will this respond me back with the whole html page or just the text part in some specific tags, as if my html page has images and paragraphs, what exactly will be retured to me in my request object, and how can i use individual tags(using javacript), if it returns them all?

request.open("GET", selectedTab + ".html", true);

Will this respond me back with the whole html page or just the text part in some specific tags, as if my html page has images and paragraphs, what exactly will be retured to me in my request object, and how can i use individual tags(using javacript), if it returns them all?

say my html file is

hello

now how do i get the individual coponents of the file.

Source Link
Kraken
  • 24.4k
  • 38
  • 115
  • 166

Asynchronous request

request.open("GET", selectedTab + ".html", true);

Will this respond me back with the whole html page or just the text part in some specific tags, as if my html page has images and paragraphs, what exactly will be retured to me in my request object, and how can i use individual tags(using javacript), if it returns them all?

lang-js

AltStyle によって変換されたページ (->オリジナル) /