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:
Hi,

I've dropdown menu and i want as one click on the link of dropdown menu it should be opened inside iframe which is also placed in the same page so that the menu will be stick.

As shown or done into following link. Just click on Login Button then click on dropdonw menu and you'll see only middle part of the page is changed not header or footer.
http://demo26.orangehrm.com/index.php[^]
Posted

Hi,

Use iframe1.Attributes("src") = "url" in your DropDownMenu Click Event.
 
Share this answer
 
Call this function on menu click. Send required page to display as a parameter.
function SetFrame(obj urlPage)
{
document.getElementById('YourIframeID').src = urlPage;
}
 
Share this answer
 
v2
Comments
.NET- India 9-Jul-12 3:19am    
But my menus are being designed at code-behind from database and inside a Placeholder

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