View Full Version : making links with index?...

07-25-2009, 02:38 AM
Hey guys!!!

I need some help in making links like:




this is just an example, i want to get to know how this stuff is made.

I'm using a CMS system called uCoz, u can check it out at http://ucoz.com or http://ucoz.ru (the latter is for people u stand russian)

so I have made a page like http://mysite.com/index/0-2, how to make those ?friends and etc.

btw, i'd like to point it out, that my CMS system does not support php and others, just html, javascript

thx in advance, u'll really greatly help me if u give a piece worthful advice and some tips on making this)

Old Pedant
07-25-2009, 03:09 AM
Are you asking how to *READ* the stuff after the question mark??

That's pretty easy:

var afterQuestionMark = location.search.substring(1);

(location.search is the part of the URL that starts at the question mark)

Now, as to what you *do* with that string...that's up to you.