divyac Posted March 23, 2009 Share Posted March 23, 2009 HiI am working on a project and i want to redirect that page as follows in a php file:<a href="www.google.co.in" target="_blank">Google</a>Now my problem is that i am getting an error as "Object not found!" and in address bar i am getting http://localhost/loanmod21/www.google.co.inwhat is the problem with this?? Link to comment Share on other sites More sharing options...
Synook Posted March 23, 2009 Share Posted March 23, 2009 You need the protocol, in this case http://, e.g. <a href="http://www.google.co.in" target="_blank">Google</a> Or else the browser treats the path as relative. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.