| View previous topic :: View next topic |
| Author |
Message |
autos06
Joined: 13 May 2006 Posts: 123 Location: New York
|
| How can I test to see if a variable has a pattern or a substring in it ? |
| |
|
|
|
|
Koplaf
Joined: 28 May 2006 Posts: 130
|
| autos06 you mean if a string has a pattern or substring in it? |
| |
|
|
autos06
Joined: 13 May 2006 Posts: 123 Location: New York
|
| Yes sir |
| |
|
|
Koplaf
Joined: 28 May 2006 Posts: 130
|
| Str.indexOf(substr) or check out regex |
| |
|
|
autos06
Joined: 13 May 2006 Posts: 123 Location: New York
|
| How would I do a regex sir ? |
| |
|
|
Koplaf
Joined: 28 May 2006 Posts: 130
| |
autos06
Joined: 13 May 2006 Posts: 123 Location: New York
|
Thx u
Location.href = which; <-- that works perfect... how can I make that spawn in a new browser ?
I'm use to doing target="_blank" |
| |
|
|
Koplaf
Joined: 28 May 2006 Posts: 130
|
| Window.open(which) |
| |
|
|
autos06
Joined: 13 May 2006 Posts: 123 Location: New York
|
Thxs
Worked perfect
Thxs |
| |
|
|
|
|