View Single Post
Old 12-09-2012, 11:25 AM   PM User | #5
AndrewGSW
Senior Coder

 
Join Date: Apr 2011
Location: London, England
Posts: 2,120
Thanks: 15
Thanked 354 Times in 353 Posts
AndrewGSW will become famous soon enough
If you remove the "g" global modifier - which is not relevant to test() - then it behaves as expected.

Added: I won't have JavaScript besmirched
(only joshing!)
__________________
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Validate your HTML and CSS

Last edited by AndrewGSW; 12-09-2012 at 11:27 AM..
AndrewGSW is offline   Reply With Quote