chanfuterboy Posted December 4, 2009 Share Posted December 4, 2009 Hi, i began use-ing included header and footer.php so i dont know why the script/ code does not work anymore as it should, it just action the # and it does not open the link in a new window. can someone help me out with another way <a href="#" onClick="window.open('http://www.lyroy.com/flyer1.html','30958','width=640,height=441');"> <span style="text-decoration: none; font-weight: 700"> <font color="#000000" size="2"> <img src="Flyer/Oh%20Baby_small[2]%20Promo%20flyer.jpg" border="0" width="126" height="93" align="right"></font></span></a></td Thus it just stay on the same page link useing # as href, and in a popwindow it will open the flyer page. help me out. nos it just action the # only Link to comment https://forums.phpfreaks.com/topic/184013-help-with-new-open-window/ Share on other sites More sharing options...
premiso Posted December 4, 2009 Share Posted December 4, 2009 Just copied and pasted that code in an HTML file and the window opened just fine on FF, perhaps you have a javascript syntax error prior to that code that is causing javascript to stop working? Link to comment https://forums.phpfreaks.com/topic/184013-help-with-new-open-window/#findComment-971489 Share on other sites More sharing options...
chanfuterboy Posted December 4, 2009 Author Share Posted December 4, 2009 but there is a other way to write is so, maybe it just pop out, without to use that href # ? Link to comment https://forums.phpfreaks.com/topic/184013-help-with-new-open-window/#findComment-971491 Share on other sites More sharing options...
premiso Posted December 4, 2009 Share Posted December 4, 2009 Not sure if this is what you are after: <a href="http://www.lyroy.com/flyer1.html" target="_blank"> That will open it in a new window. Link to comment https://forums.phpfreaks.com/topic/184013-help-with-new-open-window/#findComment-971499 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.