I have some javascript that run on Chrome but on Mozilla firefox it just doesen't work. Here is js code:
Then I have a button which should run that javascript but it doesen't only on Mozilla:Code:<script type="text/javascript"> function Get_help() { var info = "/info"; var help = "/help"; var info_website = "This webpage is developed for helping every coder to get most common things he need for making web pages. This webpage is created by Mr.Joker for CSS Help forum members. It's not allowed to use this webpage for your forums. This page is only for members of CSS Help forum."; var help_website = "To use this webpage you have to type slash (/) and then some word that is allready registred as default value.\n " + "\n" + "List of default values:\n " + "1. /info\n" + "2. /help\n" + "3. /html\n" + "4. /css\n" + "5. /colors\n" + "6. /fonts\n"; var get_input = document.forms[0].search.value; if (get_input == info) { document.getElementById('paragraph').innerText = info_website; } else if(get_input == help) { document.getElementById('paragraph').innerText = help_website; } } </script>
And there is paragraph with ID:Code:<input type="button" class="button" value="Search" onClick="Get_help();">
Code:<p id="paragraph"></p>


Reply With Quote

