Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6026335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:25:51+00:00 2026-05-23T04:25:51+00:00

<html> <head> <title>test</title> <script type=text/javascript> function changeInput(){ var url = document.getElementById(f2).contentWindow.location; document.getElementById(input2).value = url;

  • 0
<html>
    <head>
        <title>test</title>
        <script type="text/javascript">
            function changeInput(){
                var url = document.getElementById("f2").contentWindow.location;
                document.getElementById("input2").value =  url;             
            }

            function start(){
                document.getElementById("f1").onload = function(){
                    var url = document.getElementById("f1").contentWindow.location;
                    document.getElementById("input1").value =  url;
                };
            }
        </script>
    </head>
    <body onload="start()">
        <iframe src="http://www.google.com/" id="f1" width="100" height="100"></iframe>
        <input type="text" id="input1"/>
        <iframe src="http://www.google.com/" id="f2" width="100" height="100" onload="changeInput()"></iframe>
        <input type="text" id="input2"/>
    </body>
</html>

On Safari:

  • input1 – display nothing
  • input2 – display URL

On Firefox:

  • input1 – display nothing
  • input2 – display nothing

and there is an error with Firefox:

Permission denied to access property 'toString'
document.getElementById("input2").value = url; 

How could this happen?
What should I do to make BOTH two inputs display the URL?

thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T04:25:51+00:00Added an answer on May 23, 2026 at 4:25 am

    For security, Same origin policy restricts access to objects hosted in frames that are part of another domain. You would not want to be able to fetch that data from say an online bank page loaded in a frame.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Take a look at this html: <head> <title>Test page</title> <script type=text/javascript> function submitForm() {
Heres my simple html source <html> <head> <title> Dec2Bin </title> <script type=text/javascript> function app()
I have this html code <html> <head> <title>JQuery Problem 2</title> <script type=text/javascript src=jquery-1.4.min.js></script> <script
I have the following code <html> <head> <title>Test</title> <style type=text/css> <!-- body,td,th { color:
<head> <title>Overlay test</title> <meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /> <style type=text/css> #overlay { position: absolute;
function msg ($msg) { echo <script type='text/javascript'>alert('$msg');</script>; } if (count($_POST)) { msg('TEST!!!!!'); } <!DOCTYPE
I am using this HTML <html> <head> <Title>EBAY Search</title> </head> <script language=JavaScript src=ajaxlib.js></script> <body>
I am using the following html page: <html> <head> <title>AJAX Example</title> <meta http-equiv=Content-Type content=text/html;
HTML: <html> <head> <meta http-equiv=Content-Type content=text/html; charset=UTF-8> <title></title> <link type=text/css href=galerina.css rel=stylesheet/> </head> <body>
The code is as below: <html> <head> <title>test</title> </head> <body> <div><span>shanghai</span><span class=margin> </span><span>male</span></div> </body>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.