Project / Support Center
Welcome, Guest. Please login or register. October 03, 2023, 05:34: AM
Home Help Search Login Register
D-Web Web Site Creator D - Web Web Site Creator On-line HTML Editor No Programming knowledge required. Web Global Net PayPal-Cart Shopping Cart System PayPal - Kart Shopping Cart System for E-Commerce over the internet, that's easy to use. Web Global Net Newsletter Manager Newsletter Manager On-line Newsletter Creator with Email Subscriber Management.
Ring Central Discount
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  Javascripting  |  Topic: Page Forwarding 0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Send this topic Print
Author Topic: Page Forwarding  (Read 15173 times)
admin
Guest
« on: September 09, 2010, 04:58: PM »

Page Forwarding:
META for Automatic Page Forwarding

You can use <META ...> to tell the web browser to automatically move to another web page after a specified period of time..This will be very useful when you move your website to a new address. To transfer a visitor to a new URL/address, place the following line between the HEAD tags :

<META HTTP-EQUIV="refresh" CONTENT="5;URL=http://www.newurl.com">

Here we gives two pieces of information: CONTENT=5 means your browser waits for 5 seconds to reload and forward to  the new URL.

Automatic Page forwarding using Javascript

You can use a Javascript function to achieve the same task (without using the META TAG given above):

 <script type="text/javascript">
    window.location = "../index.php";
</script>

which is called by an onLoad in the BODY tag:

<BODY onLoad="setTimeout('TransferToURL()',5000)">.
« Last Edit: January 24, 2023, 02:48: PM by admin » Report to moderator   Logged
Pages: [1] Go Up Send this topic Print 
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  Javascripting  |  Topic: Page Forwarding « previous next »
Jump to:  


Login with username, password and session length
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!