D
Dr J R Stockton
I have the following working code; BID is global, initially 0. POPBtn
is called during the loading of the page, maybe several times.
function POPBtn() { // Call with ArgList to generate button
var I = 'JJ' + BID++ // var BID = 0 precedes
document.write("<input type=button value='POP Code Up' ID=", I,
" onClick='POPThis(this)'> ")
document.getElementById(I).btnargs = arguments }
Is it possible, and if so how, to add the item btnargs with value
set to arguments to the new button without using the button's ID or
name? Note that onClick's argument is this . POPThis(X) uses
X.btnargs, of course.
is called during the loading of the page, maybe several times.
function POPBtn() { // Call with ArgList to generate button
var I = 'JJ' + BID++ // var BID = 0 precedes
document.write("<input type=button value='POP Code Up' ID=", I,
" onClick='POPThis(this)'> ")
document.getElementById(I).btnargs = arguments }
Is it possible, and if so how, to add the item btnargs with value
set to arguments to the new button without using the button's ID or
name? Note that onClick's argument is this . POPThis(X) uses
X.btnargs, of course.