
07-06-2012, 02:54 PM
|
|
Newcomer
|
|
Join Date: May 2012
Location: Ahmedabad, Gujrat, India
Posts: 5
|
|
|
This JavaScript programming tutorial is designed to show the steps required to split and modify URLs using JavaScript. This has multiple uses in creating javascript split test pages, or just providing a facility to split traffic with JavaScript. The process is as follows:
Get current URL
Split the URL
Create a new URL
Redirect the Browser
The new URL that will be created here is just a redirect to a Google query. However, it could be any kind of inline or redirect code. For example, a part of the HTML could contain an HTML div that is designed to be populated with YouTube videos that relate to the subject matter of the URL. Other uses include querying Amazon.com for products relating to a specific topic, to generate revenue for the site owner.
|
|