(c) 2016, Deluxe-Menu.com
Search  
Ctrl+F2 - enter/switch menu | Arrow keys - navigate | Esc - exit menu  
  Support
  FAQ
  Contacts
  About Us
  Recent Questions


 

    I have an iframe menu item for the dhtml menu sample, and when I click a link in iframe, I would like to close the menu.

Return to Recent Questions


Q: I have a quick question: I have an iframe menu item (see note 1) for the dhtml menu sample,
and when I click a link in that iframe, I would like to close the menu.
Is this possible, perhaps by using a javascript call?


A: You couldn't close the menu, you can only hide it.
You can try to use the following code to hide the menu.

["||test menuitem
<iframe src='test.php' onClick='document.getElementById(\'dm0m0\').style.visibility=\'hidden\';'
></iframe>","", , , , ,"0" , , , ],

You can also place your Iframe in DIV tag with indents.

["||test menuitem
<div style='padding: 10px;'><iframe src='test.php'
onClick='document.getElementById(\'dm0m0\').style.visibility=\'hidden\';'></iframe></div>","", , , , ,"0" , , , ],





Return to Recent Questions

Related:
Mobile Page Layouts Overview Best 50 Inspirational and Beautiful HTML Themes Collection  |  Top 54 Brand New jQuery Themes List  |  Mobile-friendly Web Page Themes Review  |  Top 53 Killer HTML Templates List  |  Top 41 Wonderful CSS3 Templates Collection  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. Free AI Website Builder | Best AI Website Builder | AI Website Generator | AI Website Generator | AI website design generator