OL Learn

Move div absolute object to another page

I have div absolute object displaying in page 1 but I need to move it to another page based on certain condition to last or another page.

I tried this in Post Pagination script but not working

var queryFooter = query("#ERAFooter");
queryFooter.attr(“anchor”, “page_media_” + pageNo); // new page

Should that work or is there any other option?