Guardian-Mage Posted May 4, 2007 Share Posted May 4, 2007 <!-- function toggleDisplay(which) { var myId = document.getElementById('news1'); if (myId.style.display=="block") { myId.style.display="none"; } else if (myId.style.display=="none") { myId.style.display="block"; } } --> Above is an external javascript file I included in the head of my html document Whenever I try to execute the function in Firefox it comes up with "myId has no properties" and the script will not work. For all code go to http://ictonentertainment.com/wamboldt/newicton/ and look at the source PLEASE NOTE: THIS SITE IS NOT COMPLETE AND THE CSS IS TEMPORARY AND SUCKS Link to comment https://forums.phpfreaks.com/topic/50059-solved-something-about-no-properties/ Share on other sites More sharing options...
Guardian-Mage Posted May 4, 2007 Author Share Posted May 4, 2007 My bad, forgot to add the ID to the elements, that was kinda dumb Link to comment https://forums.phpfreaks.com/topic/50059-solved-something-about-no-properties/#findComment-245701 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.