How set route func in js

on set route func i can move to the document but i want to go to the particular document id how to mention in set_route func?

frappe.set_route('Form', doctype, docname)

@snvafter your set_route no change happened?
I want to go to the unique id of that doc

If you want to go to a form from another doctype form then execute the above mentioned function on the click of a button. Check how custom buttons are added in the JS and use set_route in the function