CodePudding user response:
Your method name is addTab not add so can't find the add method
CodePudding user response:
Window. The onl oad=function () {}, all the inside of the var delete a try,
Look at the javascript variable scope
CodePudding user response:
Window. The onl oad=function () {
.
Var add=document. GetElementById (" tabadd ");
The add onclick=function () {
AddTab ();
}
}
Var addTab=function () {
.
};
CodePudding user response: