Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Using javascript in an iframe.  (Read 3105 times)

0 Members and 1 Guest are viewing this topic.

Bannana97

    Topic Starter


    Intermediate
  • Owner of HerbertsWorld Corporation
    Using javascript in an iframe.
    « on: November 27, 2010, 05:40:01 PM »
    Hi all,
    I have an iframe and need to run javascript inside of it.
    My current code is:
    Code: [Select]
    var frame = document.getElementById('stsltlwamgor6frmae');
    frame.src = "javascript:document.getElementById('ctl00_cphRoblox_lRobloxLogin_UserName').value='"+usern+"';void(0);";
    frame.src = "javascript:document.getElementById('ctl00_cphRoblox_lRobloxLogin_Password').value='"+passw+"';void(0);";

    All that happens is the page the iframe is on spins (in IE)

    Thanks.
    Thanks
    Bannana97