Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem in opening new window  RSS feed

 
payal Jain
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have an herf tag to open new window
herf="window.open('www.yahoo.com')" but it takes the context path as
/test/project/www.yahoo.com. and says requested source not found at location
/test/project.I am using Tomcat as server.

How to make it directly open the path www.yahoo.com.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65830
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want it to open http://www.yahoo.com, then that's what you need to specify. Shortcuts will be interpreted as relative to the page or context.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!