User: help me defeat this annoying JavaScript?

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

    User: help me defeat this annoying JavaScript?



    There's a page that I frequently need to use, but I find that I
    cannot bookmark it, because it starts with

    if (parent.locatio n.href == self.location.h ref) {
    // change the url below to the url of the
    // frameset page...
    window.location .href = 'index.html';

    ? The desired page can be reached from index.html, of course, but
    one has to follow several links to get there. VERY annoying!

    I've tried desperate nonsense such as

    javascript:pare nt.location.hre f="foobar"; location="http://www.irritating. com/
    deeply_hidden.h tml"

    but no luck. Any ideas would be much appreciated!

    Many thanks,

    -bill


  • Ivo

    #2
    Re: help me defeat this annoying JavaScript?

    "bill" wrote[color=blue]
    >
    > There's a page that I frequently need to use, but I find that I
    > cannot bookmark it, because it starts with
    >
    > if (parent.locatio n.href == self.location.h ref) {
    > // change the url below to the url of the
    > // frameset page...
    > window.location .href = 'index.html';
    >
    > ? The desired page can be reached from index.html, of course, but
    > one has to follow several links to get there. VERY annoying!
    >
    > I've tried desperate nonsense such as
    >
    > javascript:pare nt.location.hre f="foobar";[/color]
    location="http://www.irritating. com/[color=blue]
    > deeply_hidden.h tml"
    >
    > but no luck. Any ideas would be much appreciated![/color]

    Look in their index.html file. Perhaps there is code that automatically
    loads the desired page from the search portion of the url.
    Or:
    Write your own little frameset, it can be as simple as
    <frameset>
    <frame src="http://stuff/thepage">
    </frameset>
    and store this locally on your harddrive, then bookmark that file.
    The javascript in the page will not redirect because the page is framed now.
    Of course other scripts and links will also fail now that the page is not in
    its intended frameset.
    HTH
    Ivo


    Comment

    • Vincent van Beveren

      #3
      Re: User: help me defeat this annoying JavaScript?

      > ? The desired page can be reached from index.html, of course, but[color=blue]
      > one has to follow several links to get there. VERY annoying!
      >
      > I've tried desperate nonsense such as
      >
      > javascript:pare nt.location.hre f="foobar";[/color]
      location="http://www.irritating. com/[color=blue]
      > deeply_hidden.h tml"
      >
      > but no luck. Any ideas would be much appreciated![/color]

      Well, this could work:

      in the addressbar as one line:

      javascript:docu ment.open();
      document.writel n('<HTML><FRAME SET COLS="*">
      <FRAME SRC="http://www.google.com" ></FRAMESET></HTML>');
      document.close( );

      Good luck,
      Vincent


      Comment

      • bill

        #4
        Re: User: help me defeat this annoying JavaScript?

        In <40ed5817$0$696 8$e4fe514c@news .xs4all.nl> Vincent van Beveren <vincent@provid ent.remove.this .nl> writes:
        [color=blue][color=green]
        > > ? The desired page can be reached from index.html, of course, but
        > > one has to follow several links to get there. VERY annoying!
        > >
        > > I've tried desperate nonsense such as
        > >
        > > javascript:pare nt.location.hre f="foobar";[/color]
        >location="http ://www.irritating. com/[color=green]
        > > deeply_hidden.h tml"
        > >
        > > but no luck. Any ideas would be much appreciated![/color][/color]
        [color=blue]
        >Well, this could work:[/color]

        It did, like a charm. Thank you!

        -bill

        Comment

        Working...