
JavaScript Program to Print Your Own Name - GeeksforGeeks
Jan 17, 2025 · We can print a user's name in JavaScript using methods like alert(), console.log(), document.write(), document.getElementById(). Each method serves a specific purpose depending on the output scenario.
HTML <output> name Attribute - W3Schools
The name attribute specifies the name of an <output> element. The name attribute is used to reference form data after it has been submitted, or to reference the element in a JavaScript.
Write a HTML code to display your name. - Techyv.com
here are the simple code for showing NAME in html: <HTML> <Head> <Title> My Home Page </Title> </Head> <Body> <center><h1>Hello My Name is ABC</h1></center> </Body> </HTML> This simple code shows name in the center of the page,
javaScript, function, priting my name (beginner) - Stack Overflow
Jan 11, 2015 · Call nameString() by passing it your name, and use console.log to print the output. I wrote: var nameString = function (name) {return "Hi, I am" + " " + name;}; nameString (Myrrh); console.log (name);
JavaScript Output - W3Schools
JavaScript Print. JavaScript does not have any print object or print methods. You cannot access output devices from JavaScript. The only exception is that you can call the window.print() method in the browser to print the content of the current window.
Write a HTML program to display your name and Address
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself. You can also link to another Pen here (use the .css URL Extension ) and we'll pull the …
HTML Course | First Web Page Printing Hello World
Apr 3, 2025 · Let us use these six different Heading tags separately to print “Hello World!” and see the difference. Modify your code in index.html with the below code: Code: index.html. The code displays “Hello World!” in six different sizes using heading tags <h1> to <h6>.
Collect input and Print result in JavaScript - Exercises 1 - Level ...
May 4, 2020 · Write a JavaScript program to collect name in HTML input and print name with hello
javascript - JS: Input user name and print it out - Stack Overflow
Jul 3, 2015 · Use first.value to get the value of the element & use onSubmit attribute in instead of using onclick. Have a look at this code, I did some changes in your code. Javacript : function welcome(){ var first = document.getElementById("FirstName").value; . var last = document.getElementById("LastName").value; var welcomeF = "Welcome " + first +" "+ last;
Display first and lastname with JavaScript - Stack Overflow
You wanted this as your output code: document.getElementById("here").innerHTML = first + " " + second; The G and I should be lower case and you should output both first and last names at the same time using string concatenation.
- Some results have been removed