Jump to content

html dom , with javascript


vytas

Recommended Posts

Can i pass a variable to html dom something like this.:

<script type="text/javascript">var r = "Arial"document.getElementById('text').style.font-family=r</script>

thx

Link to comment
Share on other sites

Ok i thought there whas something rong with the variable thx alot :)

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...