(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:
Bootstrap Jumbotron Header Bootstrap Login forms Layout  |  Bootstrap Row Grid  |  Bootstrap Button groups active  |  Bootstrap Modal Popup Form  |  Bootstrap Layout Jquery  | 
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 Generator | AI Website Builder | Free AI Website Generator | AI website design generator | AI web page design generator