You need to sign in to do that
Don't have an account?

hiding home page component
<div id="editLink">
<iframe src="/apex/Symc_UploadVideoLink" width="100%" frameborder="0" height="100"></iframe> </div>
<script>
document.getElementById("editLink").style.visibility='hidden';
}</script>
this is the code of the home page Custom Components I want to hide the iframe based on some condition but the code is not working any help will be greate
Hi,
In your code there is an extra curly braces(}) just before the </script> tag which may create this issue. Try the below one:
<apex:page >
<div id="editLink">
<iframe src="/apex/Symc_UploadVideoLink" width="100%" frameborder="0" height="100"></iframe>
</div>
<script>
document.getElementById("editLink").style.visibility='hidden';
</script>
</apex:page>