document.open()
Pos= document.cookie.indexOf("Order")
totalString = document.cookie.substring(Pos+16,Pos+0)
Pos= document.cookie.indexOf("Credit")
OrderedString = document.cookie.substring(Pos+36,Pos+0) document.writeln(totalString)
document.writeln(OrderedString)
document.close()
This bit of code works but the "Order" part is of variable length, is there anyway I can stop it printing when it reaches a blank space to overcome this.
Pos= document.cookie.indexOf("Order")
totalString = document.cookie.substring(Pos+16,Pos+0)
Pos= document.cookie.indexOf("Credit")
OrderedString = document.cookie.substring(Pos+36,Pos+0) document.writeln(totalString)
document.writeln(OrderedString)
document.close()
This bit of code works but the "Order" part is of variable length, is there anyway I can stop it printing when it reaches a blank space to overcome this.