Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Security - Other
Author Message
xXRaZoRXx
New Member
New Member



Joined: Mar 18, 2005
Posts: 11

PostPosted: Wed Jun 22, 2005 6:38 pm Reply with quote

I've got a code here im using for a password proctected area on one of my sites. However, in the code it is promting the new page to open as a new window.

Code:
window.open('downloads.htmlhsig88292');




What would i edit that to, to get it to open in the current window instead of opening a new one.


Thanks
 
View user's profile Send private message
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6432

PostPosted: Thu Jun 23, 2005 8:02 am Reply with quote

Take the onclick or other Javascript references that open a new browser window out of the HTML link and use a regular link (HREF) instead.

_________________
I search, therefore I exist...
nukeSEO - nukeFEED - nukePIE - nukeSPAM - nukeWYSIWYG
 
View user's profile Send private message
xXRaZoRXx







PostPosted: Thu Jun 23, 2005 2:38 pm Reply with quote

Not sure how i would edit that, heres what the entire code looks like.


Code:



function passWord() {
var testV = 1;
var pass1 = prompt('Please Enter Password',' ');
while (testV < 3) {
if (!pass1)
history.go(-1);
if (pass1.toLowerCase() == "buffett") {
alert('Access Granted...Please click OK');
window.open('downloads.html');
break;
}
testV+=1;
var pass1 =
prompt('Access Denied - Password Incorrect.','');
}
if (pass1.toLowerCase()!="password" & testV ==3)
history.go(-1);
return " ";
}


 
kguske







PostPosted: Thu Jun 23, 2005 3:56 pm Reply with quote

There is an object - text, a button, or something, that is linked to this Javascript function passWord. You can remove the Javascript call all together, or replace the window.open with a URL link. Not sure what the Javascript would be to do that offhand, but it shouldn't be hard to find on a Javascript reference site.
 
xXRaZoRXx







PostPosted: Thu Jun 23, 2005 5:44 pm Reply with quote

Yes, it has a form button that its feeding the script to
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Security - Other

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©