Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q69 How do I access to the part of the URL after the "?" character?

irt.org | Knowledge Base | JavaScript | Link | Q69 [ previous next ]

Q69 How do I access to the part of the URL after the "?" character?

var text = window.location.search.substring(1);

Which returns everthing after the '?'.

This DOES work on Internet Explorer - it just doesn't work when tried from a page on your file system, once uploaded to a server it WILL work!

Feedback on 'Q69 How do I access to the part of the URL after the "?" character?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.