Newsgroups: comp.lang.javascript
From: stephen.cunli...@gmail.com
Date: 13 Apr 2007 13:21:04 -0700
Local: Fri, Apr 13 2007 4:21 pm
Subject: Set/Navigate to a Location (what is the correct way?)
Hi all,
This may sound real strange, but I'm curious what the "official" In my JS, I want to redirect/navigate to a url... In Mozilla, document.location.href = '{my_url}'; //works in Moz, IE6, IE7, Opera, window.location.href = '{my_url}'; //works in Moz, IE6, IE7, Opera, But.... there are times, in IE6, when... document.location.href = '{my_url}'; does *NOT* work... and IE just ignores the request... Now, from all the specs I read, it looks like location.href was only So, 2 questions... 1.) What is the "official" way to set the page location (e.g. to some You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||