SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2007
    0 Post(s)
    0 Thread(s)

    Does anyone know how to do this javascript?

    Copied from another thread

    Thanks it seems to be working for me the iframe seems to be displaying the correct page but what I need to find out know is how do this
    I want the hyperlink to be in the sidebar div so when clicked upon the page will appear in the content div.

    Thanks for your help I am sure there will be someone out their who knows more about iframes.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    <html xmlns="">
    <meta name="generator" content="HTML Tidy for Linux (vers 1 September 2005), see" />
    <link href="admin.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>

    <style type="text/css">
    div.c1 {text-align: left}
    <div id="container">
    <div id="banner"><img src="Logo.gif" alt="Logo" width="770" height="150" /></div>
    <div id="navbar"></div>
    <div id="sidebar">
    <div align="center">
    <p><a href="addformclient.htm"> Vacancy Matcher</a></p>
    <div align="center"></div>
    <div id="content">
    <iframe src="addclientform.htm"


    <div id="uppernav"></div>

    Yesterday, 12:05 #4
    SitePoint Enthusiast

    Join Date: Feb 2008
    Posts: 32 i'm not really sure then.... you probably have to use JavaScript...

    something like:
    add id="iframe1" to your iframe, then on the link add

    that's just a guess - but maybe something like that will work - i'm not too good with JS.

    Hi I am just wondering does anyone know more about how to do this in Javascript would be greatful for the help.

    I have upload the page to this address to show you what I mean, thanks

  2. #2
    SitePoint Enthusiast
    Join Date
    Jan 2007
    0 Post(s)
    0 Thread(s)
    I want the hyperlink to be in the sidebar div so when clicked upon the page will appear in the content div.
    With contect div i suppose you mean the iframe?

    Then you add the "name" attribute to your iframe. And in your link you add that name as the target.

    for example:

    HTML Code:
    <a href="" target="targetFrame">google</a>
    <iframe name="targetFrame" src=""></iframe>


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts