Clayf700
02-07-2011, 01:07 AM
I Know this has to do with the simple iframe thread, sorry about that
but i'm trying to use this code from an iframe and it's not working
onclick="window.parent.Appear('myDiv');"
What it does is makes a div disappear or appear
here is the javascript code for the appear/disappear command
function Appear(itemID){
// Toggle visibility between hidden and visible
if ((document.getElementById(itemID).style.visibility == 'hidden'))
{
document.getElementById(itemID).style.visibility = 'visible';
} else {
document.getElementById(itemID).style.visibility = 'hidden';
}
}
anyone know why it's not working?
but i'm trying to use this code from an iframe and it's not working
onclick="window.parent.Appear('myDiv');"
What it does is makes a div disappear or appear
here is the javascript code for the appear/disappear command
function Appear(itemID){
// Toggle visibility between hidden and visible
if ((document.getElementById(itemID).style.visibility == 'hidden'))
{
document.getElementById(itemID).style.visibility = 'visible';
} else {
document.getElementById(itemID).style.visibility = 'hidden';
}
}
anyone know why it's not working?