Reply
Load page with link
Old 11-30-2006, 11:26 AM Load page with link
Novice Talker

Posts: 5
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
jimandy is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 11-30-2006, 12:05 PM Re: Load page with link
Novice Talker

Posts: 5
Well, I've just solved my problem by re-reading about the target attributes in an href link. My real problem was figuring out how to get out of a frame back to a home page. I'm new at this and no sleep for hours has led to brain rot!
jimandy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Load page with link
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12326 seconds with 12 queries