This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes problem in opening new window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "problem in opening new window" Watch "problem in opening new window" New topic
Author

problem in opening new window

payal Jain
Ranch Hand

Joined: Dec 20, 2007
Posts: 50
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

Joined: Jan 10, 2002
Posts: 61314
    
  66

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
GeeCON Prague 2014
 
subject: problem in opening new window