Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Old 11-30-2006, 12:26 PM Load page with link
Average Talker

Posts: 21
Trades: 0
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 12:45 PM.. Reason: added
jimandy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-30-2006, 01:05 PM Re: Load page with link
Average Talker

Posts: 21
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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.31177 seconds with 12 queries