how to retrieve the closed tab in chrome\ code example
Example: open previous closed tab chrome
Chrome keeps the most recently closed tab just one click away. Right-click a blank space on the tab bar at the top of the window and choose "Reopen closed tab."
You can also use a keyboard shortcut to accomplish this:
CTRL + Shift + T on a Window PC or
Command + Shift + T on a Mac.