<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello,<div><br></div><div>I need to write a layout test where the document's URL will be reported as</div><div><br></div><div><a href="http://layouttest/new-test.html">http://layouttest/new-test.html</a><b>#segment</b></div><div><br></div><div>I tried&nbsp;</div><div><br></div><div>window.location = url + "#name1";</div><div><br></div><div>but that doesn't work</div><div><br></div><div>any ideas?</div><div><br></div><div>thanks</div></body></html>