Well, when you're writing your table rows out to the screen, you're iterating through a recordset, yes?
So for any given row, you have a primary key associated with that row, right?
so, you just write out the button action just like you would any other information on that row.
So for instance, if your primary key field was called 'pk', and your recordset was called 'rs', then you might write the button like this:
response.write("<input type=button value=Delete onClick=""javascript:deleteRecord(" & rs("pk"

& "

;"">"
so that for each row, you just write the buttons out when the page is rendered, so that each button (row) gets its respective pk.
paul