/    Sign up×
Community /Pin to ProfileBookmark

frames and javascript

Am sorry, am braindead newbie! ? And I need help!

My site does not currently have frames, though I want to use frames. OK, no problem there, I can create framesets, thats easy.

The problem is this.

I give out a url to a specific page, say;

[url]www.mywebsite.com/pages/cars/mycar.html[/url]

This will not load into a frame, which is not what I want.

What I want is, via JS, to be able to detect that the window is not currently framed, then create the frames (v simpy, 2 col frame setup, left one with links in it, main one with the page in it) then load the links (my navigation) into the left frame and then load the page the user actaully entered the url for, in the main frame.

I know it’s very easy to just do something like:

if (top == self) self.location.href = “INSERT HOMEPAGE HERE”;

and get it to go to my main index.html page where the frameset would be defined, but I really want the actual page they requested in the main frame.

Am I asking too much here?

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@PhilNov 26.2002 — Visit this page and tell me if this is what you are looking for








http://www.porthuronclassifieds.netfirms.com/news1.html







[URL=http://www.bluewaterclassifieds.netfirms.com/cgi-bin/atl.cgi]Free personals no sign up Always free click here[/URL]

[URL=http://www.porthuronclassifieds.netfirms.com/]Voice your opinion today in our free forum on pollitics[/URL]

[URL=http://www.autotracker.netfirms.com/cgi-bin/atl.cgi]Selling a car? post it here for free limited time only get your space now[/URL]
×

Success!

Help @Sharkus spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...