Login Register


Skill and Learn - Ask users for input programmatically filter_list
Author
Message
Skill and Learn - Ask users for input programmatically #1
Input Tag
Input tag is the most easy way to ask for user input as it can be configured in multiple ways in style and use.
The webmaster can edit the text and how it's showned to the user.

Code:
<input name="text" id="example1" placeholder="http://www.example.com" style="width:100%" spellcheck="false" autocomplete="off">

Code:
What it means? <input name="text"> Defines the input type id="example1" Save the user input as example1. placeholder="http://www.example.com" Show http://www.example.com on input until user enter keywords. style="width:100%" Expand the input to 100%. To fit in a box, etc. spellcheck="false" Disable spellcheck. autocomplete="off"> Disable autocomplete.

Prompt
Super easy to use and it show a console to the user asking for input.
The webmaster can edit the text and how it's showned to the user.

Code:
var keyword = prompt("Type something to search!\n\nHacxx code.", "");

Code:
What it means? var keyword Save any input from the user as keyword var. prompt("Type something to search!\n\nHacxx code.", ""); Initiate prompt, show the text and if the webmaster want to add text to the input use the last , ""); Note: \n - New line. (Good for styling)

Reply

RE: Skill and Learn - Ask users for input programmatically #2
Thanks for sharing, would love to get into codiing

Reply

RE: Skill and Learn - Ask users for input programmatically #3
(05-28-2024, 01:15 AM)MINORFLUX Wrote: Thanks for sharing, would love to get into coding

Psss... You can make money selling app using the code above...
(No one told me it was possible)

Reply







Users browsing this thread: