Gökdeniz Türkoğlu Gökdeniz Türkoğlu - 7 months ago 32
CSS Question

About DIVs (Hiding and Showing not Java)

<div id="abc" style="display: none;"><h1>abc</h1></div>

Hello! I hide the div but I want to see when I type it #abc I can't see this text.

Answer Source

Please find below sample as per your requirement.

<!DOCTYPE html>
function myFunction() {

    //alert("Page is loaded");
<body onload="myFunction()">

<h1>Hello World!</h1>

<div id="abc" style="display: none;"><h1>abc</h1></div>

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download