Whing Dela Cruz
asked on
How to code on java with conditions?
Hi experts, I have a java code;
function getStuff()
{
document.querySelector('#t una').oncl ick=talk;
}
function talk()
{
alert('tuna');
}
window.onload=getStuff;
My problem is I want to add another 1 like document.querySelector('#b acon').onc lick=talk; then I want the word bacon will show on alert message.
Any help pls?
function getStuff()
{
document.querySelector('#t
}
function talk()
{
alert('tuna');
}
window.onload=getStuff;
My problem is I want to add another 1 like document.querySelector('#b
Any help pls?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You're welcome!
ASKER