Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

nocase - quickie :) 1

Status
Not open for further replies.

stormbind

Technical User
Mar 6, 2003
1,165
GB
Quickly grabbing the id of a dynamic page,

var = document.href.split('id=')[1];

However, it poops if you use ID= or Id= and I would appreciate the quick fix :p

----------
I'm willing to trade custom scripts for... [see profile]
 
Nope. That don't seem to do it, probably changing the id= in the split to lower case instead of the ID= in the URL.

I'll have a play with the function though, thanks :)

----------
I'm willing to trade custom scripts for... [see profile]
 
Got it! Thanks for the quick reply :)

----------
I'm willing to trade custom scripts for... [see profile]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top