/    Sign up×
Community /Pin to ProfileBookmark

Secure link??

Hi all,

I want to secure my link at my firm page so noone can drage the link to the adress type area and get a link outside a frame? My page is in a top and main frame, and if you drage one of the links from the main frame into the address area then it opens in the whole page instead of in the main frame…. big problems??

Hope someone can help me out?

LAKMAN4

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@JonaOct 28.2004 — [font=trebuchet ms]You'd have to include an external *.js file in all of the pages you want to keep in frames, but try this.[/font]

<i>
</i>&lt;script type="text/javascript"&gt;&lt;!--
if(!top.frames[0]){
location.href = "/frames.html?start="+window.location;
}
//--&gt;&lt;/script&gt;


[font=trebuchet ms]And in your frames.html page, I would suggest testing the query string and loading up the page the person was trying to go to remotely.[/font]
×

Success!

Help @lakman4 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.22,
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,
)...