在浏览器中禁用地址栏中的URL

时间:2013-11-21 05:39:08

标签: javascript php codeigniter

我目前正在登录登录的codeigniter代码。现在我要禁用地址栏的网址。请帮助我这样做。我已将代码放在下面。在视图下方:Login_form。 视图:Login_form

<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
<!-- Idea by:  Nic Wolfe -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=500,height=500,left = 710,top = 290');");
}
// End -->
</script>
 </head>
<title>login_form</title>
<BODY onLoad="noBack();" onpageshow="if (event.persisted) noBack();" onUnload=""><div class="container">

            <div class="row">
                <div class="span4 logo">
                   <img src="<?php echo base_url('img/logosl.png'); ?>"  style="margin-bottom:7px; margin-top:7px;"/>
             </div>




<?php $this->load->view('includes/header'); ?>
<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>css/style1.css"  />
<div id="login_form">

    <h1>Login!</h1>
    <?php 
    echo form_open('login/validate_credentials');
    echo form_input('username', 'Username');
    echo form_password('password', 'Password');
    echo form_submit('submit', 'Login');
    echo anchor('login/signup', 'Create Account');
    echo form_close();
    ?>

</div><!-- end login_form-->


<?php $this->load->view('includes/footer'); ?>
</body>
</html>

0 个答案:

没有答案