Need help with making dataset urls open in current tab

Thank you so much for the reply! Do you know where I should put this in my code or if I should include any references to anything?