Full-screen IE spoof

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Paul

    #1

    Full-screen IE spoof

    Try making a .html file with only this inside:

    <script>
    op=window.creat ePopup();
    op.document.bod y.innerHTML=""> ";
    op.show(0,0,scr een.width,scree n.height,docume nt.body);
    </script>

    As you it will open a full screen, empty browser.
    If I try to change the innerHTML="" part to innerHTML="HELL O!"
    I will get an empty screen with HELLO! in the top left-hand corner.
    My question is why do I get an error if I try and enter anything but
    pain text within the innerHTML="" part?

    What do I need to do to make it to take more than plain text within
    innerHTML=""?

    Thanks

    Paul
  • N Clements

    #2
    Re: Full-screen IE spoof

    thefunnel@aol.c om (Paul) wrote in
    news:a17835b8.0 309301344.6384a 45c@posting.goo gle.com:
    [color=blue]
    > Try making a .html file with only this inside:
    >
    > <script>
    > op=window.creat ePopup();
    > op.document.bod y.innerHTML=""> ";
    > op.show(0,0,scr een.width,scree n.height,docume nt.body);
    > </script>
    >
    > As you it will open a full screen, empty browser.
    > If I try to change the innerHTML="" part to innerHTML="HELL O!"
    > I will get an empty screen with HELLO! in the top left-hand corner.
    > My question is why do I get an error if I try and enter anything but
    > pain text within the innerHTML="" part?
    >
    > What do I need to do to make it to take more than plain text within
    > innerHTML=""?
    >
    > Thanks
    >
    > Paul[/color]

    There's an error in your script as shown. Having said that, when I tried
    to add a button, I had no problems. Try something like the following:

    <script>
    str="<br><hr><i nput type=\"button\" value=\"bye\" onclick=\"alert (
    'blah' )\">";

    op=window.creat ePopup();
    op.document.bod y.innerHTML=str ;
    op.show(0,0,scr een.width,scree n.height,docume nt.body);
    </script>

    Although I've not tried it, if you want to add some scripting into the
    string, you'll probably need to split up the <script> tags -- "<scr" +
    "ipt>".

    Hope that helps.

    N. Clements
    Brainbench MVP for _Javascript

    nospam@spam.spa m.spam.242.mail shell.com
    Remove 2nd through 4th spam to reply.

    Comment

    • HikksNotAtHome

      #3
      Re: Full-screen IE spoof

      In article <NMednTJ-6NcWz-eiU-KYgw@comcast.co m>, N Clements
      <nospam@spam.24 2.spam.mailshel l.spam.com> writes:
      [color=blue]
      >Although I've not tried it, if you want to add some scripting into the
      >string, you'll probably need to split up the <script> tags -- "<scr" +
      >"ipt>".
      >
      >Hope that helps.[/color]

      No need to "split up" the tag, simply escape the closing script tag:

      <\/script>

      Which is well known about by some, not by others.
      --
      Randy

      Comment

      Working...