Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / February 2005



Tip: Looking for answers? Try searching our database.

window.location.href

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
danny - 28 Feb 2005 07:18 GMT
<script language="javascript">
 function ConfirmPage() {
   window.location.href="http://ConfirmationPage.htm";
   return false;
   }
</script>
How can I use this script to display a page in my current directory? It
woriks fine when using a domain such as yahoo.com or google.com. Any
suggestions?
Evertjan. - 28 Feb 2005 09:24 GMT
danny wrote on 28 feb 2005 in comp.lang.javascript:

> <script language="javascript">
>   function ConfirmPage() {
[quoted text clipped - 5 lines]
> woriks fine when using a domain such as yahoo.com or google.com. Any
> suggestions?

relative adressing:

window.location.href="ConfirmationPage.htm";

If the originating page is on the same dirctory.

Signature

Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.