Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello friends,

I have a in my home.html. has another page say one.html now this one.html is having one link for another page say two.html. Now on click of this link it should open two.html in place of home.html but it is opening the same page in itself. what can i do for it.

Thanks in advance.
Posted
Comments
[no name] 4-Jul-11 7:33am    
can you write code which you have written for the above task.

1 solution

Set the target of link _top.

Value	Description
_blank	Open the linked document in a new window or tab
_self	Open the linked document in the same frame as it was clicked (this is default)
_parent	Open the linked document in the parent frameset
_top	Open the linked document in the full body of the window
framename	Open the linked document in a named frame
 
Share this answer
 
Comments
Manisha Rane 4-Jul-11 7:41am    
Thanks friend, but i haven't used frameset. So this solution is not useful for me. Can you suggest me any another solution.
Prerak Patel 4-Jul-11 7:42am    
Show the sample HTML, how you used it.
Manisha Rane 4-Jul-11 8:45am    
Now its working.
My code is as follows.

Organic_spice.html

<iframe style="width: 709px; height: 500px; margin-top: 0px;" src="Organic_Spice1.html" scrolling="auto" id="iFrm " name="iFrame1">

</iframe>


Organic_Spice1.html

<span class="border">
<span class="aligncenter">
<span class="border">
<img src="images/assets/Organic_wheat1_slider2.JPG" width="188" önclick ="javascript:CallEvent();" alt="Organic_Flour" />
</span>

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900