Jump to content

tendouser

Members
  • Posts

    153
  • Joined

  • Last visited

Posts posted by tendouser

  1. I have both files in my PC.  The console outputs Unsafe JavaScript attempt to access frame with URL file:///C:/Documents%20and%20Settings/Administrador/Escritorio/js1.htm from frame with URL file:///C:/Documents%20and%20Settings/Administrador/Escritorio/js2.htm. Domains, protocols and ports must match.

     

    Any idea?

  2. Ok! It's for Google Chrome this issue.  Safari, IE, FF, Opera work fine.

     

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">

    <head>

        <title>J</title>

    <script type="text/javascript">

    function changeStyle()

    {

    var x=document.getElementById("myframe");

    var y=(x.contentWindow || x.contentDocument);

    if (y.document)

        y=y.document;

    y.body.style.backgroundColor="#0000ff";

    }

    </script>

    </head>

    <body onload="changeStyle()">

     

    <iframe id="myframe" src="js1.htm">

    <p>Your browser does not support iframes.</p>

    </iframe>

    <br /><br />

     

    <input type="button" onclick="changeStyle()" value="Change background color" />

     

    </body>

    </html>

  3. I have to pay for MS, they sell like all their software is the best thing in the world ...which is not and is unstable.  I've seen a lot of crap since Win98. 

    Besides, I want to learn linux and Ubuntu is great.  I have try it in a friend's laptop.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.