(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:
Magical HTML Bootstrap Slider With Text Templates 30+ Top Innovative Software Company Website Template List  |  How to Make a Webpage - Step by Step Tutorial  |  Splendid JS Design Maker Overview  |  Awesome Mobile-friendly Website Design Review  |  Exceptional Bootstrap Mobile Template Set  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. AI Website Maker | Free AI Website Generator | AI Website Generator | Website Generator AI | AI website design generator