0

It doesnt make the page default help

function openCity(evt, cityName) { var i, tabcontent, tablinks; tabcontent = document.getElementsByClassName("tabcontent"); for (i = 0; i < tabcontent.length; i++) { tabcontent[i].style.display = "none"; } tablinks = document.getElementsByClassName("tablinks"); for (i = 0; i < tablinks.length; i++) { tablinks[i].className = tablinks[i].className.replace(" active", ""); } document.getElementById(cityName).style.display = "block"; evt.currentTarget.className += " active"; } // Get the element with id="defaultOpen" and click on it document.getElementById("defaultOpen").click();

16th Apr 2018, 1:02 PM
Maamun Maamun
Maamun Maamun - avatar
1 Answer
0
sorry i wanted to make one of my tabbed page to be default page if you load the page
16th Apr 2018, 4:07 PM
Maamun Maamun
Maamun Maamun - avatar