PHP Developers Network
http://forums.devnetwork.net/

Hide a div id or class in html iframe
http://forums.devnetwork.net/viewtopic.php?f=1&t=143188
Page 1 of 1

Author:  altabmw01 [ Sun Dec 04, 2016 3:55 pm ]
Post subject:  Hide a div id or class in html iframe

Just save this html code as a index.html and run this code in your browser. You can see bing layout. Now i need to hide videos menu which is in the #scpt2. So please help me.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>iframe</title>
</head>
<body>
<iframe src="http://www.bing.com" style="width: 90%; height: 300px"></iframe>
</body>
</html>

Author:  Christopher [ Sun Dec 04, 2016 4:15 pm ]
Post subject:  Re: Hide a div id or class in html iframe

You will probably get a cross-site scripting error -- as you should for security. You cannot access Javascript on a frame or window in another domain.

For code examples, search for "accessing elements in iframe"

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/