Click here to Skip to main content
15,889,335 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using iframe in html code.

I set a src to iframe and run the page and it opens the website in a browser which I have set in src.

It shows my local host url in browser's address bar which i want, but as i click any link on that website it replaces my local host url to that page which I click.(in case of open in new tab or new window)

I want every time i open any link in new tab or new window it opens in my iframe.

anybody can help me.
Posted
Updated 16-Jun-11 23:25pm
v3
Comments
Dalek Dave 17-Jun-11 3:46am    
Edited for Grammar, Spelling and Readability.
thatraja 17-Jun-11 5:58am    
Sharing code would be fine to identify things

1 solution

Your links need to explicitly target the iframe, which I believe is done by name. Have you tried doing some reading on the topic online ?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900