I want to get element's id and name attributes from a web page by clicking on the element using VBA. Link of the website will be provided by the user and that webpage should be displayed in a vba form. After that whenever user clicks(Right Click) on a element in a webpage, system should return its element id(1st priority) through message box. If id is not present then it should return element name(2nd priority). If both Id and Name are not present then code will return some message stating that Id or Name not found.