W3 Mind Logo
Home » Show/Hide ‘DIV’ using JavaScript getElementById

Show/Hide ‘DIV’ using JavaScript getElementById

				
					<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

</head>
<body>
<a href="javascript:hideshow(document.getElementById('w3div'))">button</a>
<div id="w3div" style="display:none"> sdfsdf </div>
<script src="https://w3mind.com/wp-content/cache/min/1/bcd39dfa674e2513ff2d9cd8fb640777.js" data-minify="1" defer></script></body>
</html>
				
			
About Author
W3Mind

W3Mind

W3Mind focuses on Blogging, Make Money Online, SEO, Business Blogging, Social Media, WordPress, Internet Tools, Web Design and Development.
Give it a Share
Facebook
Twitter
LinkedIn
You May Also Like
Leave a Reply

Your email address will not be published. Required fields are marked *

How to
START A
BLOG
(step by step)
Load WordPress Sites in as fast as 37ms!