link in javascript

B

boyke

hallo

i have 2 frames.
left frame -->menu.htm.
right frame -->main.htm.
on main.htm i have a iframe ,named mainframe.
Now on the left frame a use a javascript menu to link my pages to the right
frame,but i hase to open on the iframe in the right frame

the whole script is taken up on the first line in the html page
<example>

<HEAD>
<link rel="stylesheet" href="assets/dtree.css" type="text/css">
</head>

</example>

here is a example of the script that i put on the menu.html ,simple for
linking

<script type="text/javascript">

d = new dTree('d');
d.add(0, -1, 'Disclaimer', 'html/disclaimer.htm' ) ; // -1
= startplaats

<--javascript

Now the problem is when i do this it's opent the page in the left frame,and
not in the iframe,whats normal,because it's not linked to the iframe,but
there is my problem,how do i link it to the iframe

i treid something like this,

<script>
d.add(0, -1, 'Disclaimer', 'html/disclaimer.htm
,'target=mainframe') ; // -1 = startplaats,
</script>

but this dont work's.
i hope you understand it a little,because my english is not so good ;-)

greets boyke
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,102
Messages
2,570,645
Members
47,245
Latest member
ShannonEat

Latest Threads

Top