Thanks for viewing my question. So, I have a question with iframes. I want an iframe that is almost like an actual browser. I need to make it have atleast a forward button, a back button, and a URL loader. I have accomplished this but it is not working well. My Code:
<html>
<head>
<title> iFrame </title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
$(function()
{
$('.frmSubmit').click(function(e)
{
$('#myIframe').attr('src', $('.frmUrlVal').attr('value'));
e.preventDefault();
});
});
</script>
</head>
<body>
<form>
<input type="text" value="http://"class="frmUrlVal">
<input type="submit" class="frmSubmit" value="Go">
<input type="button" VALUE="< < Back " onClick="myIframe.history.back()">
<input type="button" VALUE="Forward > >" onClick="myIframe.history.forward()">
</form>
<iframe align="center" width="50%" height="50%" src="http://gravitate.webs.com" frameborder=yes scrolling="yes" name="myIframe" id="myIframe"> </iframe>
<form>
A reload/cancel button would also be preffered. Maybe even a statusbar. Thanks!!