|
I've searched but can't find the answer. Want to load a local page in the current window.
I can make this work with a button in a form but I want to use a link. The alerts are showing the function got called OK but it doesn't load the the test page.
<html>
<head>
<title></title>
<Script language="javascript">
function jump()
{
alert("if this shows the function was called OK");
window.location="test.html";
alert("but if this shows, it did not load the test page!")
}
</script>
</head>
<body>
<a href="" onclick="jump()">load test file</a>
</body>
</html>
Oh yes, this is a page that's in a frameset. A simple href link doesn't help because it puts the test page within the frame. I want to replace the whole frme with the test page.
Last edited by jimandy : 11-30-2006 at 11:45 AM.
Reason: added
|