Html Posted May 18, 2007 Share Posted May 18, 2007 How do you create this piece of code so that when you click on a image it opens a pre-defined sized window? <a href="java script:location='current.html';window.open('new.html','New','height=250,width=500,scrollbars=yes')">click</a> Link to comment Share on other sites More sharing options...
aspnetguy Posted May 18, 2007 Share Posted May 18, 2007 <img src="your image" alt="" onclick="window.open('new.html','New','height=250,width=500,scrollbars=yes')"/> is that what you meant? Link to comment Share on other sites More sharing options...
Html Posted May 18, 2007 Author Share Posted May 18, 2007 Yes, Thank you. Though When I tested it in IE 7, it doesn't show the hand while you hover the cursor over it? Link to comment Share on other sites More sharing options...
aspnetguy Posted May 18, 2007 Share Posted May 18, 2007 <img src="your image" style="cursor:pointer" alt="" onclick="window.open('new.html','New','height=250,width=500,scrollbars=yes')"/> Link to comment Share on other sites More sharing options...
Html Posted May 18, 2007 Author Share Posted May 18, 2007 Thank you, again. Link to comment Share on other sites More sharing options...
aspnetguy Posted May 18, 2007 Share Posted May 18, 2007 no problem Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.