Jump to content

Log In Window


grungefreak

Recommended Posts

I have a link on my site to log in. I want a new window to pop up when the user clicks this. This new window will simply hold 2 textfields - username and password - is this a Javascript thing (prompt) or a CSS event. If this is Javascript, then is it possible to style this pop up with css?

 

GF

Link to comment
Share on other sites

If this is what you are looking for:

 

http://jnerocorp.com/tests/test7.php

 

then use the following codes.

 

Step 1:

 

Add this code to the page where the Login button will be:


<a href="javascript:void(0)"onclick="window.open('http://www.JneroCorp.com/tests/login.php','linkname','height=150, width=300,scrollbars=no')">Login</a>

 

Step 2 Create a Page called "login.php"

Add this code to it:


<form action="#" method="post">
Username: <input type="text" name="username"><br>
Password: <input type="password" name="password"<br>
<input type="submit" value="login">
</form>

 

Hope this helps :)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.