[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Disable javascript on Frame

Posted on 2006-04-25
1
Medium Priority
?
258 Views
Last Modified: 2008-03-04
Hello,

This solution is for my learning only because it bother me if I don't have a solution for anything I encounter.

This site: www.thoitrang.com/test.html is using a frame to frame another site. But this other site has a scripts to block it. How to force frame and disable that popup message box? by writing scripts in www.thoitrang.com/test.html ?

It is our source of file test.html:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
     <title>Thoitrang.com</title>    
</head>

<frameset rows="100%," border="0">
     <frame name="content" bordercolor="#999999" frameborder="1" noresize src="http://ngoisao.net/news/thoi-trang/">
</frameset>

</html>



Thanks,
0
Comment
Question by:andreni78
1 Comment
 
LVL 49

Accepted Solution

by:
Roonaan earned 1500 total points
ID: 16532711
Hi,

You cannot access site and document properties which run of another domain thru javascripting. This is a security measure.

-r-
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question