Hi George!
You don't necessarily need Javascript, just an "rdr" redirect.
URLRoot() & "db/" & Dbid() &
"?act=API_EditRecord&rid=" & [Record ID#] &"&_fid_8=" & Today() &"&_fid_9="& "RECEIVED" &
"&rdr=" & URLEncode(URLRoot() & "db/" & Dbid() & "?a=dr&rid=" & [Record ID#] )
^^ or you can set the location to somewhere else in your app by adjusting what comes after the "?"
If you want to learn the ins and outs of building APIs for Quick Base Buttons you can check out a course I offer
here.
------------------------------
Sharon Faust (QuickBaseJunkie.com)
Founder, Quick Base Junkie
https://quickbasejunkie.com------------------------------