|
#1
|
||||
|
||||
|
Hello, i need a script that has an input feild and the input is URL's. when a go button is clicked the url open in an inline frame. if you could write in a Back/Forward Script that'd be great.
PS. if it isnt conceivable please tell me. |
|
#2
|
|||
|
|||
|
Quote:
HTML Code:
<input type="text" name="url" id="url"> <input type="button" onclick="showurl"> HTML Code:
<iframe name="theiframe" id="theiframe">
Code:
function showurl(){
if (document.getElementById('url').value != ""){
theiframe.location = document.getElementById('url').value;
} else {
alert('No URL Entered');
}
}
HTML Code:
<a href="Javascript:;" onclick"theiframe.history(-1);">
|
|
#3
|
||||
|
||||
|
Close but, with several errors, try:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title>Mini Browser</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
function showurl(){
if (document.getElementById('url').value != "")
theiframe.location.href = document.getElementById('url').value;
else
alert('No URL Entered');
}
</script>
</head>
<body>
<input type="text" id="url"><br>
<input type="button" onclick="showurl();"><br>
<iframe name="theiframe"></iframe><br>
<a href="javascript:void(0);" onclick="history.go(-1);return false;">Back</a> <a href="javascript:void(0);" onclick="history.go(1);return false;">Forward</a>
</body>
</html>
__________________
WWWWWWWWWWWW - John________________________ Really Show Your Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate |
|
#4
|
|||
|
|||
|
Hey try this out: http://captninsano.tripod.com/browser.html
Recently Updated!! (Works in FF 1.5 IE 5-6 but unfortunately not in Opera Has an extra feature{shows history when Ctrl is pressed}) If you are searching for something like that then I can provide you the code(freely distributable with appropriate credits). If you are not searching for something like that then it's not a problem at all.
|
|
#5
|
||||
|
||||
|
Quote:
__________________
WWWWWWWWWWWW - John________________________ Really Show Your Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate |
|
#6
|
|||
|
|||
|
Quote:
And can you also tell me why "history reveal feature do not each have their own line" I would try to show it in a single line if it is not correct.
|
|
#7
|
||||
|
||||
|
Quote:
I would think that Stop and Refresh should either be skipped or work as in a browser. If I hit Stop in the browser and then refresh, the page I was loading reloads and the history remains intact, neither of those happened. These things could probably be achieved with (a) session cookie(s). With the jumping history, to make it like FF (IE does this too) you could use an iframe or scrolling division (probably best) or frame to contain the history. This would make it more like those browsers are when their history buttons are clicked. I realize that when designing something like this that there often is a tendency not to try and 'push the envelope' on the features when testing but, these thing will be done, as a matter of course, by individuals using the design. Overall, I should mention that the design looked nice but, with its reliance on javascript and the fact that at best, it merely duplicates what the user has before them to begin with, I wonder about its usefulness. These reservations apply to this thread in general but, it is an interesting exercise. I wonder why the OP wanted something like this to begin with.
__________________
WWWWWWWWWWWW - John________________________ Really Show Your Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate |
|
#9
|
|||
|
|||
|
Quote:
|
|
#10
|
|||
|
|||
|
Quote:
But anyways if you wish then you can make some changes in it too. If you wish |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
|
|