PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Nov 18, 2019 10:57 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sun Dec 04, 2016 3:55 pm 
Offline
Forum Newbie

Joined: Fri Dec 02, 2016 3:50 pm
Posts: 3
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>


Top
 Profile  
 
PostPosted: Sun Dec 04, 2016 4:15 pm 
Offline
Site Administrator
User avatar

Joined: Wed Aug 25, 2004 7:54 pm
Posts: 13592
Location: New York, NY, US
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"

_________________
(#10850)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group