This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 60752
    
  65

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem in opening new window
 
Similar Threads
Is there any alternative for window.open in Struts
Disabling shift-click button
Can't configure the path for JDK.
click of a link shud open in a new tab instead of new window using javascript
Path Name Again