Did you try: location='http://www.google.com' (with the http://)?
Where is the <a href=""> being called from?
Did you try just: top.main.up.location='http://www.google.com'?
Did you check the spelling (and case) of your frame names?

So many questions ^_^

-- 
SCOTT VAN VLIET 
SENIOR ANALYST 
SBC SERVICES, INC 
Tel: 858.886.3878 
Fax: 858.653.6763 
Email: [EMAIL PROTECTED]


-----Original Message-----
From: Macarie Neculai [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 7: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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to