<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Opening links in a specific iframe</title> </head> <body> <iframe id="my-iframe"></iframe> <p> A <a href="/data/hello.txt" target="my-iframe">link</a> to be opened in the iframe above. A <a href="/data/hello2.txt" target="my-iframe">second link</a> for the iframe. </p> </body> </html>