I may of misunderstood the question, but if you want it to go there in
the current frame, why don't you just use a regular link with the target
set to _self?

_____________________________
steve oliver
senior internet developer
atnet solutions, inc.
http://www.atnetsolutions.com


-----Original Message-----
From: Macarie Neculai [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, March 14, 2002 10:25 PM
To: CF-Talk
Subject: Javascript does not want to change the current location


Hi!

    I have the following problem:

have a page that uses frames, and the frame structure is something like
this:
--------------------------
|         topbar                 |
|-------------------------
| menu  |          up          |
|           |   ---------       |
|           |         down      |
-------------------------

    in the up frame a have something like like this:
<script>
function   goURL()
{
     location.href='www.google.com';
}
</script>

<A href="#" onClick="goURL();">some link</A>

My problem is that the assignment from the goURL is not executed (the
browser does not go to www.google.com).
It works if I load www.google.com in all other frames, but it does not
work
to load it in the same frame as the link (up frame).

I've tried
top.main.up.location.href
self.location.href
.
it just does not work with the current frame.

Any help appreciated.

Mack




______________________________________________________________________
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to