codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  call a page from another page without any link?  Archive Import (Cognizance) at 18:51 on Thursday, July 31, 2003
 

how can I call a page eg: B.htm from a page A.htm without having to click any link? For eg. in 5 secs the page A.htm automatically calls the page B.htm?
thanks

  Re: call a page from another page without any link?  Troy Wolf at 00:39 on Friday, August 01, 2003
 

Here`s a complete page of code that will show you exactly how to do this:

<script language=javascript1.2>
function NavToPageB() {
window.navigate("http://www.yahoo.com");
}
function LoadTrigger() {
setTimeout("NavToPageB()",5000);
}
window.onload = LoadTrigger;
</script>

This page will automatically navigate to Yahoo.com.
Troy Wolf: site expert
SnippetEdit Website Editor


  Re: call a page from another page without any link?  Troy Wolf at 00:42 on Friday, August 01, 2003
 

I guess I should explain a little more...I`m tired--it`s way past my bedtime! When the page finishes loading, the LoadTrigger() function is called. It uses setTimeout to wait 5 seconds, then call the NavToPageB() function, which navigates to page B. setTimeout takes to arguments. First is the code to run or function to call and second is how long to wait before running the code. This is in thousands of a second so 1000 = 1 second. 5000 = 5 seconds.
Troy Wolf: site expert
SnippetEdit Website Editor


  Re: call a page from another page without any link?  Elain at 00:56 on Wednesday, February 16, 2011
 

I'm sorry i can't give you any help, but I advice that you can search the question in google, there are many solution about it! Good Luck!
__________________________
logo maker|flash banner|








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Free PHP Programming Tutorials
•  Re: data type decimal
•  Re: highlight a single row from table
•  Re: Waiting to load a page object after the page loads
•  Error while running c++ shared object on AIX
•  Re: call a page from another page without any link?
•  How to make a DHTML Menu
•  Re: Submit multiple forms with one button
•  Re: Layer & Drop Downs - Expertise Needed


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2011