JavaScript alert message box function get variable from input text if you want to send message to alert box, you can do it in simple way: just create a var, put it in the alert function and you get it!. if you need code example you can watch the next lesson: JavaScript alert message box function get variable from input text Write JavaScript function who get element id as parameter then get the value of this element. Write html input text and button then execute the function above when onclick event occur. Try our working example. שתףפייסבוקXאהבתי טוען...