I want to position a DIV at specific coordinates, how can I do that using JavaScript?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Script its
leftandtopproperties as the number of pixels from the left edge and top edge respectively. It must haveposition: absolute;Or do it as a function so you can attach it to an event like
onmousedown