# Automatically display 'recently visited' records when using object tags

**URL:** <https://community.hubspot.com/t/automatically-display-recently-visited-records-when-using-object-tags/95698>\
**Category:** HubSpot Ideas\
**Tags:** object\
**Created:** [December 8, 2023, 5:53pm UTC](https://community.hubspot.com/t/automatically-display-recently-visited-records-when-using-object-tags/95698 "2023-12-08T17:53:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KPruett](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kpruett/32/43872_2.png) [@KPruett](https://community.hubspot.com/u/KPruett)\
**Post date:** [December 8, 2023, 5:53pm UTC](https://community.hubspot.com/t/automatically-display-recently-visited-records-when-using-object-tags/95698/1 "2023-12-08T17:53:07Z")

</div>

When we are tagging deals/contacts/companies etc, the recently used deals/contacts/companies ought to show up so that we wouldn’t have to type/paste the term we’re looking for. It’d save me 10-30 seconds per record and that adds up when theres a bulk action being taken.

Hope to see this feature soon!

---

<div class="post-metadata">

**Author:** ![RMathew7](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@RMathew7](https://community.hubspot.com/u/RMathew7)\
**Post date:** [December 8, 2023, 7:53pm UTC](https://community.hubspot.com/t/automatically-display-recently-visited-records-when-using-object-tags/95698/2 "2023-12-08T19:53:09Z")

</div>

That’s a fantastic time save!

---

<div class="post-metadata">

**Author:** ![soniya-01](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/soniya-01/32/200813_2.png) [@soniya-01](https://community.hubspot.com/u/soniya-01)\
**Post date:** [December 9, 2023, 8:48am UTC](https://community.hubspot.com/t/automatically-display-recently-visited-records-when-using-object-tags/95698/3 "2023-12-09T08:48:18Z")

</div>

It sounds like you want to automatically show “recently visited” records using HTML’s \<object\> tag. However, the \<object\> tag is typically used for embedding external resources like images, videos, or other HTML documents, not for managing recently visited records.

If you want to display recently visited records on a webpage, you might consider using JavaScript along with HTML and CSS. Here’s a simple example:

\<!DOCTYPE html\>  
\<html lang=“en”\>

\<head\>  
\<meta charset=“UTF-8”\>  
\<meta name=“viewport” content=“width=device-width, initial-scale=1.0”\>  
\<title\>Recently Visited Records\</title\>  
\<style\>  
/\* Add your styles for the list here \*/  
ul {  
list-style-type: none;  
padding: 0;  
}

li {  
margin-bottom: 10px;  
}  
\</style\>  
\</head\>

\<body\>  
\<h2\>Recently Visited Records\</h2\>  
\<ul id=“recentRecords”\>  
\<!-- JavaScript will dynamically populate this list --\>  
\</ul\>

\<script\>  
// Sample data for recently visited records  
const recentlyVisitedRecords = [  
‘Record 1’,  
‘Record 2’,  
‘Record 3’  
// Add more records as needed  
];

// Function to display recently visited records  
function displayRecentlyVisited() {  
const recentRecordsList = document.getElementById(‘recentRecords’);

// Clear existing list items  
recentRecordsList.innerHTML = ‘’;

// Add each record to the list  
recentlyVisitedRecords.forEach(record =\> {  
const listItem = document.createElement(‘li’);  
listItem.textContent = record;  
recentRecordsList.appendChild(listItem);  
});  
}

// Call the function to display recently visited records  
displayRecentlyVisited();  
\</script\>  
\</body\>

\</html\>

In this example:

- The \<ul\> element with the ID recentRecords is where the recently visited records will be displayed.
- JavaScript is used to dynamically populate the list with records from the recentlyVisitedRecords array.
- You can replace the sample data in the array with your actual records.

Remember that this is a simple example, and in a real-world scenario, you might fetch recently visited records from a server or database using a server-side language like Node.js, Python, or PHP.
