(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:
30+ Top Innovative Software Company Website Template List Splendid JS Design Maker Overview  |  Magical HTML Bootstrap Slider With Text Templates  |  Beautiful JS Page Theme Review  |  How to Make a Webpage - Step by Step Tutorial  |  Awesome Mobile-friendly Website Design Review  | 
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 | AI Website Builder | AI Website Generator | Free AI Website Generator | AI web design generator