html - passing url to iframe -


I have links to my page, like "home", "news", "contact", ... If there is an iframe in the middle of the page, then I want to select iframe according to the link to go to different URLs. Can I just use html and / or how?

Give iframe a name attribute, such as it:

  & Lt; Iframe name = 'content' ... & gt;  

and then assign each target to the target attribute, such as:

  & lt; A href = 'news.html' target = 'content' .. & gt;  

Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -