This is a discussion on "a few quick qs from a relative beginner" within the JavaScript Forum section. This forum, and the thread "a few quick qs from a relative beginner are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
a few quick qs from a relative beginner
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
a few quick qs from a relative beginner
hey guys, just 2 questions:
first of all, i am trying to make a very basic "password" page just to hide my page from morons at school, and i do this by basically checking if the value entered into the form == whatever i set it at in javascript just on that page. really simple, and i get it to return true, but then i try to set the window.location to something else, but it either just reloads the same page or puts out "file name missing" or something like that. how to fix? secondly, how do you get jscript to document.write on the html document you tell it to do it on? whenever i tell a page to do that, it just starts a new blank document and puts down what i want on it. thanks guys |
|
|
|
||||
|
Re: a few quick qs from a relative beginner
If your password is just to stop people from school getting access to your page, can't just just use tools with your web hosting account to either block ips or password protect dicectories?
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 2008)
|
|
|||
|
Re: a few quick qs from a relative beginner
yeah, but you are kindve missing the point: i am learning javascript and just wanted to make something simple i can actually point to and say i made... rather than, "oh yeah, i checked off that box." thanks though.
|
|
||||
|
Re: a few quick qs from a relative beginner
If you want anything secure, javascript is simply not up to the challenge. You can still 'make' something of it though - why not a server-side script or similar?
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
||||
|
Re: a few quick qs from a relative beginner
You might like to follow this JavaScript tutorial: http://www.w3schools.com/js/js_operators.asp.
I have stopped you at the operators page as the pages before just show you document.write |
|
|||
|
Re: a few quick qs from a relative beginner
yeah thanks guys i am using those tutorials, but still no one has answered my original question: why is it that when i go:
how do you get javascript to document.write on the document you are already on? it always just goes to a new page for me. thanks |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| relative linking in php | sudhakararaog | PHP Forum | 1 | Mar 12th, 2008 23:43 |
| positioning - relative or absolute? | Web Page Design | 13 | Nov 8th, 2007 16:00 | |
| Is it possible to position something relative something else? | the newbie web designer | Web Page Design | 7 | Feb 22nd, 2007 18:04 |
| relative position problem | antonyx | Web Page Design | 12 | Dec 30th, 2005 21:19 |
| can layers be relative? | warmer | Web Page Design | 0 | Nov 8th, 2005 18:42 |