General discussion

Locked

How to add a hyperlink to list items?

By vanila2000 ·
I am desinging a webpage using frames. I am not able to set the target frame of my list items to another frame other than which in which the list is defined. That is, if i have the list in frame one, how to set hyperlink options for my list items tobe opened in frame two?

This conversation is currently closed to new comments.

7 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

How to add a hyperlink to list items?

by JCas In reply to How to add a hyperlink to ...

You need to first name the frames by using:

<frame name="one"...>
<frame name="two"...>

Then, use the <A> tag with a target attribute to specify which frame the link should open in such as:

<a target="two"....>

Hope this helps.

JC

Collapse -

How to add a hyperlink to list items?

by vanila2000 In reply to How to add a hyperlink to ...

The question was auto-closed by TechRepublic

Collapse -

How to add a hyperlink to list items?

by ryan67203 In reply to How to add a hyperlink to ...

Are you referring to a drop-down list of links? If so, try using a javascript function to activate the link.

Ex:

<form name="form1">
<select name="links" onChange="go_there(this.value)">
<option value="page1.htm">Page 1</option>
<option value="page2.htm">Page 2</option>
</select>
</form>

<script language="JavaScript">
<!--
function go_there(x)
{
parent.frame_2.location = x;
}
// -->
</script>

Hope this helps.

Collapse -

How to add a hyperlink to list items?

by vanila2000 In reply to How to add a hyperlink to ...

The question was auto-closed by TechRepublic

Collapse -

How to add a hyperlink to list items?

by RSV In reply to How to add a hyperlink to ...

HI Vanila,
Its very simply.
1. You have to specify the target frame for the hyperlinks. For example, <a href=abc.htm target="frame2">ABC</a>, when u click the link ABC, the abc.htm page opens in the frame2.

2.If u r using list, i.e. select, then write this, <select name="links" onChange="window.parent.frames(1).location.href=(this.value)">
<option value="page1.htm">Page 1</option>
<option value="page2.htm">Page 2</option>
</select>

Hope this helps you.
GOOD LUCK...:)

Collapse -

How to add a hyperlink to list items?

by vanila2000 In reply to How to add a hyperlink to ...

The question was auto-closed by TechRepublic

Collapse -

How to add a hyperlink to list items?

by vanila2000 In reply to How to add a hyperlink to ...

This question was auto closed due to inactivity

Back to Web Development Forum
7 total posts (Page 1 of 1)  

Related Discussions

Related Forums