Results 1 to 9 of 9

Thread: default web page? resolved

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    355

    Resolved default web page? resolved

    Hi, how can I make a html page that once people open it, it will load a specfic webpage without even redirecting to the page?
    Last edited by abcat; Jun 27th, 2005 at 10:14 AM. Reason: resolved

  2. #2
    Fanatic Member ALL's Avatar
    Join Date
    Jul 2004
    Location
    192.168.1.1
    Posts
    711

    Re: default web page?

    do you mean in a different window? do you have an example? are you talking about frames?
    Please support one of my projects?
    TKForums.com

    Web Forum
    JavaScript Wiki
    ________________________
    If somone helps you, please rate their post, by clicking the to rate their post

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    355

    Re: default web page?

    its on the main page, not frame.

  4. #4
    Fanatic Member ALL's Avatar
    Join Date
    Jul 2004
    Location
    192.168.1.1
    Posts
    711

    Re: default web page?

    do you mean like this:
    HTML Code:
    <html>
    <head>
    <meta http-equiv="Refresh" content="0;url=http://www.vbforums.com">
    </head>
    </html>
    Please support one of my projects?
    TKForums.com

    Web Forum
    JavaScript Wiki
    ________________________
    If somone helps you, please rate their post, by clicking the to rate their post

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    355

    Re: default web page?

    Ya, I try that before, because there is a "Refresh" there so I not sure whehther this is the correct and actual coding or not? So is there any other coding for that? Thanks for your help anyway :-)

  6. #6
    Fanatic Member ALL's Avatar
    Join Date
    Jul 2004
    Location
    192.168.1.1
    Posts
    711

    Re: default web page?

    well, you can use that to redirect, but if you want it to be a little bit faster you can use javascript:
    HTML Code:
    <html>
    <body onload="Javascript: window.location='http://www.vbforums.com';">
    </body>
    </html>
    Please support one of my projects?
    TKForums.com

    Web Forum
    JavaScript Wiki
    ________________________
    If somone helps you, please rate their post, by clicking the to rate their post

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    355

    Re: default web page?

    Ya, that is cool. btw, you have any idea to redirect a fixed website to another website? I mean like for the coding I ask above, when user click it, it will open vbforum website, after 5 seconds, it will redirect to yahoo website?

  8. #8
    Fanatic Member ALL's Avatar
    Join Date
    Jul 2004
    Location
    192.168.1.1
    Posts
    711

    Re: default web page?

    here, pay around with this:
    HTML Code:
    <html>
    <head>
    <script type="text/javascript">
    function wait(delay){
    setTimeout("parent.frame1.location='http://www.vbforums.com';",delay);
    }
    </script>
    </head>
    <body>
    <iframe name="frame1" width="100%" height="100%" src="http://www.google.com" frameborder="0" onload="wait(5000);"></iframe>
    </body>
    
    </html>
    Please support one of my projects?
    TKForums.com

    Web Forum
    JavaScript Wiki
    ________________________
    If somone helps you, please rate their post, by clicking the to rate their post

  9. #9

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    355

    Re: default web page?

    Thanks ALL, that seems cool, I will play around with it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width