CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   JavaScript programming (http://www.codingforums.com/forumdisplay.php?f=2)
-   -   Open link in new window (http://www.codingforums.com/showthread.php?t=285280)

Bradley5 01-04-2013 07:14 PM

Open link in new window
 
How can I code this so it opens in a new window? Thank You

Code:

Menu13=new Array("rollover:bdonations.gif:bdonations2.gif","http://www.store-worldministries.org/donations.html","",0);

AndrewGSW 01-05-2013 07:47 AM

I assume you are referring to the .html page:

Code:

var newone = window.open("http://www.store-worldministries.org/donations.html", "_blank"); // or
var newone = window.open(Menu13[1], "_blank");

"_blank" is actually the default, but it is not guaranteed to open a new window - it can depend on the users' browser settings.


All times are GMT +1. The time now is 05:44 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.