![]() ![]() You can download the source code for free from the link below and tweak it as per your requirement. changeStyle(propertyName) and it simply changes the style of the text of the textArea as per the button pressed. Once the content and title is present, the notepad file will be created and downloaded.īold, Italic and underline button calls a switch function i.e. This function first checks if the user has enter the title and file content, if not it will simple show a JavaScript alert window asking users to enter notepad file name and its content. If( = "underline")į = "underline"ĭownload button calls the function downloadFile(). Window.alert("Please enter File name and content") Compare) 26 Notepad List 61 the little memory 90 Litewrite 25 QwikNote 23 EasyNote 28. If(fileName.value = "" || fileContent.value ="") Anyfile Notepad 910 Notepad 33 Scratchpad 18 Note Easy 84 MomoNote 46 Diff Tools (Text, PDF, DOC, ODT. Var fileContent = document.getElementById("txtContent") Script.js: var fileName = document.getElementById("txtHeader") Also do try to tweak a design a bit.įont-family: Arial, Helvetica, sans-serif įont-family: Verdana, Geneva, Tahoma, sans-serif You can also include a strikeout button if you need and code in your JavaScript. The design is pretty simple and self explanatory. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |