I have this button that is loaded whenever u click another button(so its not loaded on startup without me doing anything)
<button type='button' id='testbtn'
onclick='testfunction()' onload='testload()'
class='testbtnclass'>btn</button>
This is my function:
function testload() {
alert("onload worked");
/*what i want to archieve within this function later is to change the
css of the button but for now i just want to call this function onload of
the button, which it doesnt/*
}
My question is now, how can i/should i do to get this function to run whenever this button is loaded?
btnA, when you click on it it generatesbtnB, and then you want to fire an event when you createdbtnB?document.onload? it wil be same