473,472 Members | 2,163 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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.location.href == self.location.href) {
// 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:parent.location.href="foobar"; location="http://www.irritating.com/
deeply_hidden.html"

but no luck. Any ideas would be much appreciated!

Many thanks,

-bill
Jul 23 '05 #1
3 1112
Ivo
"bill" wrote

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

if (parent.location.href == self.location.href) {
// 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:parent.location.href="foobar"; location="http://www.irritating.com/ deeply_hidden.html"

but no luck. Any ideas would be much appreciated!


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
Jul 23 '05 #2
> ? 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:parent.location.href="foobar"; location="http://www.irritating.com/ deeply_hidden.html"

but no luck. Any ideas would be much appreciated!


Well, this could work:

in the addressbar as one line:

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

Good luck,
Vincent
Jul 23 '05 #3
In <40**********************@news.xs4all.nl> Vincent van Beveren <vi*****@provident.remove.this.nl> writes:
? 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:parent.location.href="foobar";location="http://www.irritating.com/
deeply_hidden.html"

but no luck. Any ideas would be much appreciated!

Well, this could work:


It did, like a charm. Thank you!

-bill

Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Brian | last post by:
Not really on topic, but it's interfering with my development a bit. I'm using Moz 1.3/Win 2k, and have the following declaration in my user style sheet. body.home { min-width: 90% !important ;...
6
by: mark | r | last post by:
how do i automatically trigger functions like displaydate() in SP2 without getting that annoying security error. i use things like these almost every time on sites (see www.sicl.co.uk for my...
5
by: Don | last post by:
I have a need to submit a form, but don't need the user to click on a button. How do I do this? Is there some way, using JavaScript, to setup a <form> tag to do this? Thanks, Don ----==...
3
by: sancha | last post by:
Hi, I need to promt the user when he moves away from the page by clicking an of the links available on the page. I was trying to use the onbeforeunload function but it seems it is a jScript...
2
by: horos | last post by:
just another thing.. for people who are trying to replace a url outside of a form and who are searching for an answer - when you are trying to use the document.location.replace("") method for going...
5
by: vishesh vyas | last post by:
Hi All, I am having a user control consisting of few mandatory fields. How to validate these mandatory fields on the .aspx page submission? Thanks In Advance Regards, Vishesh
17
by: emma.sax | last post by:
Hi all, I have a form where we would like the user to input their email address twice, to ensure they've typed it correctly, as is found on most sign-ups I'm looking for a solution to the...
0
by: greatbrendi | last post by:
Hi, I have an annoying problem, that I cannot defeat by myself... I positioned 2 inherited controls on a user control. It worked well. but at some point I started to get the warning...
40
by: Paul Davis | last post by:
Hi all, I'm building some style sheets and trying to play the old game of balancing designer pixel perfection and still allowing users to adjust their font sizes. The compromise I've made with the...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.