...

View Full Version : opening a link in a different window



cat_evilness
01-19-2003, 06:31 PM
Basically i want a link to load in a different window from the one that the code is in. I am using frames to display the pages. I know that in HTML you would just use target = "page address" but I don't know how to put that into the code below which is in Javascript. Please help :) Thankyou


function checkfordeath () {
if ((hungerValue == 0) && (moodValue == 0) && (healthValue == 0) && (fitnessValue == 0) && (energyValue == 0)) {
window.location.href = "yourpage.htm"
}
}

whammy
01-19-2003, 07:07 PM
top.framename.location = "yourpage.htm"



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum