-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.htm
26 lines (26 loc) · 1.71 KB
/
test.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Get Selected Text JavaScript Example</title>
<script src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.3.2");
</script>
<script type='text/javascript' src='scripts/script.js'></script>
<style type="text/css">
body {
margin: 30px;
}
</style>
</head>
<body>
<h2>Select some text on the page ...</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse sit amet tortor metus, et blandit ipsum. Aenean accumsan condimentum blandit. Suspendisse commodo, massa nec hendrerit consectetur, urna est fringilla lorem, quis tincidunt lectus ligula quis nisi. Integer sed sem quis quam scelerisque pulvinar. Donec in lorem ipsum. Sed gravida ornare congue. Maecenas vitae ante eu metus gravida condimentum vitae vitae metus. Nam purus ipsum, placerat vel tincidunt id, iaculis et ante. In tristique, nibh id luctus sodales, risus turpis fringilla tellus, nec semper metus est eu lectus. Nam porttitor rutrum odio, in placerat tellus mollis ac. Vestibulum nibh orci, cursus ut fringilla ac, aliquet non ipsum. Quisque sit amet erat eros. In condimentum arcu nec neque varius eu gravida dolor pharetra. Nunc id risus dui, sit amet porttitor enim. Ut pharetra ipsum id eros hendrerit accumsan. Vestibulum id augue ipsum, vel rutrum augue.</p>
<br/><br/>
<h2>Edit</h2>
<p class="edit"></p>
<textarea class="update"></textarea>
<input id="goedit" type="submit" value="Edit" />
</body>
</html>