Mokushi Posted December 16, 2009 Share Posted December 16, 2009 It's probably a basic thing, but then again, my knowledge of HTML, CSS and JavaScript is pretty basic. So my question is this.What I did was created a small text box on my page, contained in the [form] tags. I wanted to make it so the user can type a URL in this text box, and when they submit it, it redirects a different frame to that URL. However, I don't know how to get it o work >_<Maybe a n00b like me shouldn't be trying to do this >_< Link to comment Share on other sites More sharing options...
thescientist Posted December 16, 2009 Share Posted December 16, 2009 do you mean it loads the URL into the frame? Link to comment Share on other sites More sharing options...
Mokushi Posted December 16, 2009 Author Share Posted December 16, 2009 Yeah, that's it. Link to comment Share on other sites More sharing options...
roundcorners Posted December 17, 2009 Share Posted December 17, 2009 can you show the code? Are you using JavaScript? Link to comment Share on other sites More sharing options...
thescientist Posted December 17, 2009 Share Posted December 17, 2009 it should just be a matter of setting the frames src to the URL, which should be easily accomplished with Javascript. You might need an ID to target the frame in Javascript, and then change its src by using an onClick function on the <a> element. You might need to refresh it too in order for it to display. Link to comment Share on other sites More sharing options...
Mokushi Posted December 19, 2009 Author Share Posted December 19, 2009 it should just be a matter of setting the frames src to the URL, which should be easily accomplished with Javascript. You might need an ID to target the frame in Javascript, and then change its src by using an onClick function on the <a> element. You might need to refresh it too in order for it to display.OK, I think I know how to do that... I'll reply once I've given it a go... Which could be a while; I don't have access to my laptop at the moment >_< Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.