rajathe Posted February 10, 2008 Share Posted February 10, 2008 Dear all, I am new to web developing.. I am learning html from w3schools.. I inserted images in html page. when i click on image, it should open in html page.. please help.. Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted February 10, 2008 Share Posted February 10, 2008 Are you wanting to just open the image or another page with the image in it; when you click on the image in your first page? Quote Link to comment Share on other sites More sharing options...
s_design Posted February 19, 2008 Share Posted February 19, 2008 <body> <a href="site" target="_blank"><img src="/sample.jpg" /></a> </body> ok just write (((target="blank")))) for open in new page goodluck Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted February 19, 2008 Share Posted February 19, 2008 <body> <a href="site" target="_blank"><img src="/sample.jpg" /></a> </body> ok just write (((target="blank")))) for open in new page goodluck That will just open up a html page in a new window/tab (for whatever you have defined as href; that is what will open; the actual image will not open/display). If your going to do that; you need to do something like this: <a href="sample.jpg" target="_blank"><img src="sample.jpg"></a> You can also display an image in a completely different page with JavaScript or Server Side Language, such as PHP; but I need to know if that is what your wanting to do. If it is; I will show you how to do that. Quote Link to comment Share on other sites More sharing options...
GameYin Posted February 20, 2008 Share Posted February 20, 2008 <a href="whatever.html"><img src="whateverpicture.jpb"></a> Not wc3 standards but yea.. Quote Link to comment Share on other sites More sharing options...
Guardian-Mage Posted February 20, 2008 Share Posted February 20, 2008 Should be valid XHTML <a href="images/picture.jpg target="_blank"><img src="images/picture.jpg" alt="Description" /></a> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.