|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
how to show/hide frame in webpage?
i create a webpage with 4 frames, and want the viewer can show/hide the frame by just press a button, any way we can do this ?
|
|
#2
|
||||
|
||||
|
you can hide/show frames variating the cols property on the frameset: this function change the cols property, one of them for 0%, this frame will not appear on the page, but this action is veri specific for each design, you should implement your function as you need, byr look this:
Code:
function Hide()
{
// for IE
var lfr = window.top.document.getElementById('frame_name');
if (lfr == null)
return;
lfr.cols ="0%,100%";
}
regards |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > how to show/hide frame in webpage? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|