/    Sign up×
Community /Pin to ProfileBookmark

Hi. I only build a limited amount of stuff and so I learn as I go along. Please bear with me.

I have downloaded som password protection script and it works fine, except that the above command opens the “secured” page in a new window, but I want it to open in the same window. What command should I use instead please?

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@konithomimoAug 13.2006 — window.location.href='securedpage.html';

of course where securedpage.html is replace with the name of your secured page.
Copy linkTweet thisAlerts:
@stratmanauthorAug 14.2006 — Thanks a lot for this - I have substituted it and it does exactly what I wanted it to do. ?
Copy linkTweet thisAlerts:
@MalithAug 14.2006 — Hi friend

U can use in this way.

window.open("www.google.com");

pl check.

Malith
Copy linkTweet thisAlerts:
@konithomimoAug 14.2006 — Hi friend

U can use in this way.

window.open("www.google.com");

pl check.

Malith[/QUOTE]


window.open will open a new window . . . the OP wants it in the same window
×

Success!

Help @stratman spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...