[Javascript] Focus in Netscape 6.1 and above

Sachin Zingade sachinz at dpsl.net
Sun Dec 22 12:16:35 CST 2002


Hi, 

I need to focus on a media on a page displayed in a window when i click
on a link present on another window.For this I have a code where I put
'<a name="somename"> </a>' before the text where I want to focus when
that HTML is displayed on a browser and then I write a script 


'<script>window.location.href="#somename"</script>' which takes focus to
that text. For ex - 


shailja saxena <br>( repeat text so that it scrolls down on a page )
shailja saxena <br>
shailja saxena <br>
shailja saxena <br>
<a name="somename"> </a>
end here
<script>window.location.href="#somename"</script> 


This works in IE but I have to refresh this page 3 times for it to work
in Netscape6.2 


How can I make it work in 1 go in Nescape ? 


I need this urgently.   <http://www.javaranch.com/ubb/rolleyes.gif> 

 

regards,

Shailja

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20021222/6328cb92/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 1784 bytes
Desc: not available
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20021222/6328cb92/attachment.gif>


More information about the Javascript mailing list