Dear all,
I have css class with height attribute
.Testclass
{
height:500px;
}
Here my requirement is
1. I need to get value of this height using javascript
2. assign to some javascript variable
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
SIVAPosted Oct 29, 2012, 11:13 AM
i have only .js file & in that itself i need to create html file dynamically and i need to set css class for that.
so i can get attribute of that class.
how can i create html file dynamically using javascript?
Sandeep Singh ShekhawatPosted Oct 29, 2012, 10:38 AM
.Testclass
{
height:500px;
}
Added Css file link on .aspx page
Create an
Hello World;
Create a javascript function
Call it onload page
OUTPUT: