Unable to open link in iFrame

sir, i wrote the same code but i am unable to open in iFrame given target = name of the frame in which I want to open it.

I have seen your code and tried to run it with links of my own and it seems to work fine however in your case you might be giving wrong path for the files to be opened
If thats the issue share the whole file so that I can fix and help you out

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.