Ok, I've got this pice of code:
Code:
var ourDiv=document.getElementById('cretor);
var t=document.createElement('table');
var tb=document.createElement('tbody');
t.style.border='8px groove blue';
var tr=document.createElement('tr');
var td=document.createElement('td');
Then I append and everything...
My question:
I want to assign a class and a style,
the class named "asdf" and in the style, a "border-top-width of 35px" and a "border-top-style of outset, how do I put them
THX
EDIT:
And if I make a button and whant to assigne it an event, let's say onClick