sequential url ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gotfumar
    New Member
    • Jun 2007
    • 1

    sequential url ?

    Hi all, im trying to find a script that might help me. what im trying to do is a button that will open a url like this : http://sample.sample.o rg/sample/moderate/00000001
    and continue with the next number 00000002 and so on .
  • merseyside
    New Member
    • Mar 2007
    • 48

    #2
    Originally posted by gotfumar
    Hi all, im trying to find a script that might help me. what im trying to do is a button that will open a url like this : http://sample.sample.org/sample/moderate/00000001
    and continue with the next number 00000002 and so on .
    Try something like this.

    [CODE=javascript]
    <html>
    <head>
    <script type="text/javascript">
    var urlCount = 0;
    function getURL
    {
    var theURL = "http://sample.sample.o rg/sample/moderate/0000000";
    urlCount += 1;

    theURL += urlCount;

    alert(theURL);
    }
    </script>
    </head>
    <body>
    <input type="button" name="myBtn" value="click" onclick="getURL ();" />
    </body>
    </html>
    [/CODE]

    Comment

    Working...