1.

Solve : php + addrss?

Answer»

is there some code that shows a textbox on the page so when you type an internet address it goes to that site (basicly the address bar on a normal browser)


i need this because ive got a page with frames so one SIDE will have the php address bar but the other side will have my admin cp so i can look at peices of code and past them without having to have MULTIPLE tabs or browsers thanksJavaScript can do it.

Code: [Select]<html>
<HEAD>
<script type="text/javascript">
FUNCTION gotoURL()
{
var url = document.getElementById('url').value;
window.location = url;
}
</script>
</head>

<body>
  Go to: <input type="text" id="url" />
  <input type="submit" onclick="gotoURL()" />
</body>
</html>
The only drawback with that method is that you'll have to enter "http://" before the site you want to go to.id PREFER not to use javascript



Discussion

No Comment Found