Jump to content

Problem with doc type and java script code


yaragallamurali

Recommended Posts

Hi before adding <!DOCTYPE html > to my html, my javascript code is working fine. But by adding this to my html, the below part of the code is not working

div.style.left=x;div.style.top=y; 

i am not able to set left and top values to an element. What could be the problem?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...