Read All H1 tags and P tags
How do I make an read all h1 tags and p tags?
What is a read all h1 tags and p tags? How do you make a read all h1 tags and p tags? This script and codes were developed by Tom Stark on 10 December 2022, Saturday.
Read All H1 tags and P tags - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Read All H1 tags and P tags</title>
</head>
<body> <h1 id="TTSNumber-1" onmouseover="readContentonHover(this)" onmouseout="stopSpeaking()">Heading 1</h1>
<p id="TTSNumber-2" onmouseover="readContentonHover(this)" onmouseout="stopSpeaking()">some body text</p>
<h1 id="TTSNumber-3" onmouseover="readContentonHover(this)" onmouseout="stopSpeaking()">Another heading</h1> <button onclick="readWholePage();">Click me</button> <!--Scripts--> <script src="https://code.responsivevoice.org/responsivevoice.js"></script> <script src="js/index.js"></script>
</body>
</html>
Read All H1 tags and P tags - Script Codes JS Codes
function readContentonHover(obj) { var text = document.getElementById(obj.id).innerHTML; responsiveVoice.speak(text); } function stopSpeaking() { responsiveVoice.cancel(); } function readWholePage() { var elementList = document.querySelectorAll("h1, p"); for (var i = 0; i < elementList.length; i++) { //This Works fine responsiveVoice.speak(elementList[i].innerHTML); } }
Developer | Tom Stark |
Username | TomStark16 |
Uploaded | December 10, 2022 |
Rating | 3 |
Size | 1,721 Kb |
Views | 12,144 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
CSS Specificity | 1,390 Kb |
A Pen by Tom Stark | 1,558 Kb |
Animate | 1,847 Kb |
BackArrow | 1,622 Kb |
Accessibility 2 | 1,701 Kb |
Accessibility | 2,033 Kb |
Speech Synthesis Utterance | 1,731 Kb |
Add Subject Button | 1,610 Kb |
CMS | 2,210 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Console fun | Dviate | 1,500 Kb |
CSS3 Button Examples | Volusion | 3,377 Kb |
A Pen by lizz | Lizz | 10,068 Kb |
Awesome textarea | Ayoungh | 1,977 Kb |
Headroom.js demo | WickyNilliams | 3,982 Kb |
Lightrays v2 | Sinthetyc | 2,903 Kb |
UI Challenge - Budget Selector | AgentRR007 | 3,547 Kb |
Wikipedia Viewer | Codinger | 4,681 Kb |
Scroll to top button | DominicFrancois | 3,743 Kb |
CSS Tooltips | Darylldoyle | 2,599 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!