473,320 Members | 2,107 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Opening and Closing automatically

Ali Rizwan
925 512MB
Hi all,
I m new in html.
I want some thing like when my webpage's homepage opens a page will automatically opens and after some time that page closes automatically or a new page open at the place of that page.

like.
i click on AboutUs link. Ad page opens. After 10secs aboutus page opens automatically.
OR
i click on AboutUs link. Ad page opens automatically in a new window.

Thanx
>> ALI <<
Apr 29 '08 #1
5 2185
gits
5,390 Expert Mod 4TB
why shouldn't the page open instantly? so that the user has an instant response ... what should happen meanwhile?

kind regards

ps: ahh i see ... you want to open an ad-page and redirect after some time? in this case you may use the 'meta-refresh' mechanism:

[HTML]<meta http-equiv="refresh" content="5; URL=redirect.html">[/HTML]
or a serverside refresh or a javascript solution:

Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript">
  2.     window.setTimeout( function() {
  3.         window.location.href = 'redirect.html';
  4.     }, 5000);
  5. </script>
  6.  
Apr 29 '08 #2
nomad
664 Expert 512MB
why shouldn't the page open instantly? so that the user has an instant response ... what should happen meanwhile?

kind regards

ps: ahh i see ... you want to open an ad-page and redirect after some time? in this case you may use the 'meta-refresh' mechanism:

[HTML]<meta http-equiv="refresh" content="5; URL=redirect.html">[/HTML]
or a serverside refresh or a javascript solution:

Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript">
  2. window.setTimeout( function() {
  3. window.location.href = 'redirect.html';
  4. }, 5000);
  5. </script>
  6.  
I like this ideal...
nomad
Apr 29 '08 #3
gits
5,390 Expert Mod 4TB
there is no window opened ... a popup-blocker will block such a simple redirect?
Apr 29 '08 #4
Ali Rizwan
925 512MB
I m sorry gits but i dont know where to place this all code, as i say i m new in html so i dont know much about html and java script, so please help me a lot.

Thanx
>> AIi <<
Apr 30 '08 #5
nomad
664 Expert 512MB
I m sorry gits but i dont know where to place this all code, as i say i m new in html so i dont know much about html and java script, so please help me a lot.

Thanx
>> AIi <<
You need to stick this before the [HTML]<body> [/HTML]
[HTML] <head>
<script type="text/javascript">
window.setTimeout( function() {
window.location.href = 'redirect.html';
}, 5000);
</script>
</head>
<body>

[/HTML] or
[HTML]
<head>
<meta http-equiv="refresh" content="5; URL=redirect.html">
</head>
<body>
[/HTML]

nomad
Apr 30 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Jean-Fran?ois Lacrampe | last post by:
Hello, I want to write a _very_ simple text parser that would replace a string like: "This is text with /italics/, *bold* and _underline_." and generate automatically something like this: ...
2
by: Jawahar Rajan | last post by:
All, I have a printer friendly page that is opened when a user clicks a link on my page to get the printer friendly version, How ever when they close out the printer friendly version and return to...
3
by: Greg | last post by:
On my report I want to have an opening balance signifying all transactions up to the month selected and detailed transactions for the month selected and then a closing blance. I'm perpelexed...
0
by: Jack Addington | last post by:
I have a 'quickadd' type window for doing quick data entry. The window is launch from a MDI child and is suppose to be a re-sizable popup/child window. This is an excel type datagrid for doing...
5
by: Daves | last post by:
is it a good or bad practise to use the session_start & session_end for opening & closing the database connection? I'd thought that on powerful servers today the time the connection is kept locked...
15
by: Sandra-24 | last post by:
I was reading over some python code recently, and I saw something like this: contents = open(file).read() And of course you can also do: open(file, "w").write(obj) Why do they no close...
7
by: Martien van Wanrooij | last post by:
I have been faced a couple of times with the situation that I wanted to write a script and was worried about a too frequent opening and closing mysql connections. To give some examples: 1)I...
3
by: Paul H | last post by:
I have a transactions table and a balance table that look something like this: tblTransactions TransactionID (PK Autonumber) ClientID TransactionDate TransactionAmount (currency field, values...
2
by: =?Utf-8?B?RXRoYW4gU3RyYXVzcw==?= | last post by:
I am (still) relatively new to Windows applications, most of my experience has been Web based, and I am confused about what exactly happens when the Main() method is called and how to manipulate...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.