P
Paul Lautman
Normally I ask why things DON'T work!!
However, according to what I have read at
http://subsimple.com/bookmarklets/rules.asp the bookmarklet:
javascript:q = prompt("Enter destination or leave blank for main maps
page.",
"");location='http://maps.google.co.uk/'+((q.length)?'maps?f=d&hl=en&saddr=po4+8ej&daddr='+escape(q.replace(/
/g, "+"))+'&om=1':'')
should cause a problem because the assignment of the prompt to q is not
voided and the script is not encapsulated in a function.
So why am I not getting an error? Is it because the location assignment is
taking precedent?
TIA
Regards
Paul
However, according to what I have read at
http://subsimple.com/bookmarklets/rules.asp the bookmarklet:
javascript:q = prompt("Enter destination or leave blank for main maps
page.",
"");location='http://maps.google.co.uk/'+((q.length)?'maps?f=d&hl=en&saddr=po4+8ej&daddr='+escape(q.replace(/
/g, "+"))+'&om=1':'')
should cause a problem because the assignment of the prompt to q is not
voided and the script is not encapsulated in a function.
So why am I not getting an error? Is it because the location assignment is
taking precedent?
TIA
Regards
Paul