Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: open
What this is meant to be is a simple "send to a friend" script. This code generates a link to the script (which works just fine). I'm using variables in the address-line to be used later - that's the 'loc' there, and the 'story'.
What purpose does void(0); serve?
If all you want to do is open a new window, use the target attribute with the link and use the js function escape to perform the encoding.