PDA

View Full Version : Re: Encrypted Password Script - New Window?



needhelp123
05-22-2008, 01:51 PM
1) Script Title: Encrypted Password Script

2) Script URL (on DD): http://dynamicdrive.com/dynamicindex9/password.htm

3) Describe problem: When I enter in the username/password and hit submit, it opens the webpage in the current frame. What do I need to change in the code to get it to open up my secret webpage in a NEW window? I tried _blank etc. but it doesn't seem to work. Any help is much appreciated. :)

jscheuer1
05-22-2008, 11:46 PM
Change:


window.location=password+".htm"}

to:


window.open(password+'.htm','_blank');}