HTML5 local storage can be used to achieve this ,where web storage, web applications can store data locally within the user's browser and all pages, from one origin, can store and access the same data.
To get this working,you need to do setItem item on your main/first page of the application as localStorage.setItem('printerObj', printers_array[i]);
and in the similar ways you need to getItem on all the subsequent pages wherever you need to access the printer as localStorage.getItem('printerObj');
This will help you to search, connect and can be used to print from any other pages till you are not closing the application.
Note : If you are changing any setting you need to start again the entire process of printer again i.e (search,connect and print).