function smile ()
{
document.getElementById("textfield_width").value = width;
//set the elements with id "textfield_width" some value the value of the variable width-->
document.getElementById("textfield_height").value = height;
// set the elements with id "textfield_height" some value the value of the variable height -->
}
lanhaibibo -2 Newbie Poster
Recommended Answers
Jump to PostWell the snippet above shows you comments that indicate the purpose of the code. You are missing the width and height variable declarations and assignments.
All 4 Replies
Troy III 272 Posting Pro
lanhaibibo -2 Newbie Poster
JorgeM 958 Problem Solver Team Colleague Featured Poster
almostbob 866 Retired: passive income ROCKS
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.