C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » HTML »

Href page redirect problem


Posted Date: 14 Oct 2009      Posted By: nitkumr      Member Level: Bronze     Points: 1   Responses: 11



Hi,

<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<link href="common/css/style.css" rel="stylesheet"
type="text/css" />
</head>
<body>
<div id="menu">
<ul>
<li><a href="new.html">New</a></li>
<li><a href="welcome.html">Welcome</a></li>

</ul>
</div>
</body>

When i click the particular link say "Welcome" the contents in the "welcome.html" has to be displayed in this same page itself below these links, instead of redirecting to "welcome.html" and that particular link "Welcome" has to be highlighted

Any solution for this?

Thanks













Responses

Author: Anuraj    14 Oct 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

Create a FRAME below the links and Set the Target of the HREF to that Frame.

Thanks
Anuraj
THIS POSTING IS PROVIDED "AS IS" WITH NO WARRANTIES, AND CONFERS NO RIGHTS.
BEWARE OF BUGS IN THE ABOVE CODE; I HAVE ONLY PROVED IT CORRECT, NOT TRIED IT.
dotnetthoghts



Author: Anil Kumar Pandey    14 Oct 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

hi,

you can use Target="_Blank" for the same thing... in the link.

Thanks & Regards
Anil Kumar Pandey



Author: Deepak Yadav    14 Oct 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

Hi,
You can use frames for this , A very simple example of the frame is at below link
http://www.w3schools.com/html/tryit.asp?filename=tryhtml_frame_navigation
The above example clearly explains with an example what you want
Even then if your problem is not solved , please reply me


Cheers

deepak yadav



Author: nitkumr    15 Oct 2009Member Level: BronzeRating: 2 out of 52 out of 5     Points: 2

Hi,

Thanks for your reply.

But that frameset is not working fine :(
Could you pls give me a better solution ?

thanks :)



Author: ashish chitranshi    18 Oct 2009Member Level: BronzeRating: 2 out of 52 out of 5     Points: 2

You can use div with scroll property which inherit a frame inside
<div style="overflow:scroll">
<frame.....


>
</div>



Author: madhavi    22 Oct 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

hi

use target=_blank



Author: soniya bhatia    29 Oct 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

U can put it like this

<div id="menu">
<ul>
<li><a href="new.html" target="_blank">New</a></li>
<li><a href="welcome.html" target="_blank">Welcome</a></li>

</ul>
</div>



Author: Shameer    15 Nov 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

Visit the below URL, you will get idea:

http://www.w3schools.com/html/html_frames.asp



Author: abdul rahim    16 Nov 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

u use frames


Author: Alwyn    16 Nov 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

<li><a href="javascript:redirect()">Welcome</a></li>
<script language="javascript">
function redirect()
{
window.location.href = "welcome.htm"
}
</script>
Use Location.href in Javascript

Thanks & Regards,
Alwyn Duraisingh.M



Author: Sunil    17 Nov 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

Some suggested about target blank ..which will open a new window ..u need it in new window or in same


Post Reply
You must Sign In to post a response.
Next : What is the htmi
Previous : Mask the url
Return to Discussion Forum
Post New Message
Category: HTML

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use