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# - PInvoke of NetUserAdd returns 24 -

actionscript 2 - getURL action script 2 and IE 7/8 -