It's free and you have access to premium codes!
Welcome back! Please login to your account.
Don't worry, we'll send you a message to help you to recover your acount.
Please check your email for instructions to activate your account.
Written by 21 August 2012
The following code is a simple address bar. When you enter the address you want and click the go button, a new window like pop-up will open for you and your address will be loaded. If you click on the button without entering any address, it will give you an alert that you must enter an address. You can change features such as the length and width of the pop-up window to your liking.
<!-- this script is provided by https://www.javascriptfreecode.com coded by: Kerixa Inc. -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>body,table,input,select,textarea,div {font-family:tahoma;font-size:8pt}</style>
<!--</head>-->
<!--<body>-->
<form name="login">
<p dir="rtl" align="left">
<input type="text" name="js4ir" size="14">
<input type="button" value="Go" onClick="Login(this.form)">
<script language="JavaScript" link="www.js4ir.com">
function Login(form) {
var js4ir = form.js4ir.value;
if (js4ir) {
var site = "http://" + js4ir; window.location = site;}
else {alert("Please enter your adress");}}
</script>
<br><a target="_blank" href="http://www.javascriptfreecode.com">
<span style="text-decoration: none">eg:www.javascriptfreecode.com</span></a>
</p>
</form><a target='_blank' href='https://www.javascriptfreecode.com' style='font-size: 8pt; text-decoration: none'>JavaScript Best Codes</a>
Comments
Here you can leave us commments. Let us know what you think about this code tutorial!