View Full Version : Help needed

09-17-2005, 09:13 PM
Can anybody tell me how to get the javascript im using to open the requested page in an iframe? heres a section of the code:

if (e == null) e = event;
var response=window.confirm("Clicking this link will leave the game and take you to the News Page.\nPlease log out of the game before exiting for your safety.\nClick the OK button if you have safely logged out.");
if (response) document.location.href=menulink1;
if (e.cancelable) e.preventDefault();
return false;
help would be greatly appreciated.

09-18-2005, 04:05 AM
if (response) frameName.location.href=menulink1;Where frameName is a name you have assigned to the iframe:

<iframe name="frameName"></iframe>

09-18-2005, 06:48 PM
Ah, thanks a lot!